/* Kayan Al Khalij CSS - Enhanced with Animations and Professional Features */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-color: #0d47a1;
  --secondary-color: #ffc107;
  --accent-color: #2196f3;
  --success-color: #4caf50;
  --error-color: #f44336;
  --warning-color: #ff9800;
  --text-primary: #222;
  --text-secondary: #666;
  --bg-primary: #f8fafc;
  --bg-secondary: #fff;
  --border-color: #e0e0e0;
  --shadow-light: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-medium: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-heavy: 0 8px 32px rgba(0,0,0,0.15);
  --border-radius: 8px;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Cairo', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  margin: 0;
  direction: rtl;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Enhanced Top Bar */
.top-bar {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
  color: #fff;
  font-size: 15px;
  font-family: 'Cairo', Arial, sans-serif;
  padding: 0;
  position: relative;
  overflow: visible; /* allow language dropdown to be visible on mobile */
}

.top-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/>'); /* ...existing code... */
  animation: grain 20s linear infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -5%); }
  20% { transform: translate(-10%, 5%); }
  30% { transform: translate(5%, -10%); }
  40% { transform: translate(-5%, 15%); }
  50% { transform: translate(-10%, 5%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 10%); }
  80% { transform: translate(-15%, 0%); }
  90% { transform: translate(10%, 5%); }
}

.top-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 2rem;
  position: relative;
  z-index: 1;
}

/* Mobile-friendly top bar layout */
@media (max-width: 600px) {
  .top-bar .container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    padding: 0.35rem 1rem;
  }
  .top-bar-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  /* Hide address to reduce clutter, keep email then phone stacked */
  /* keep location visible on phones */
  .top-bar-right .top-bar-item:nth-child(1) { display: flex; }
  .top-bar-right .top-bar-item:nth-child(2) { order: 1; }
  .top-bar-right .top-bar-item:nth-child(3) { order: 2; }
  .lang-switcher { align-self: flex-end; }
}

.top-bar-right {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.top-bar-right span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}

.top-bar-right span:hover {
  transform: translateY(-2px);
}

.top-bar i {
  color: var(--secondary-color);
  font-size: 1.1em;
  margin-left: 0.3em;
  transition: var(--transition-fast);
}

/* Top bar socials */
.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.top-bar-socials a {
  color: #fff;
  text-decoration: none;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.top-bar-socials a:hover { background: rgba(255,255,255,0.25); transform: translateY(-2px); }

@media (max-width: 600px) {
  .top-bar-socials { align-self: flex-start; }
}

.top-bar-right span:hover i {
  transform: scale(1.2);
}

.top-bar-link {
  color: #fff;
  text-decoration: none;
  transition: var(--transition-fast);
}

.top-bar-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Enhanced Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #ffd54f 100%);
  color: var(--primary-color);
  border: none;
  border-radius: var(--border-radius);
  padding: 0.3rem 1.2rem;
  font-weight: bold;
  cursor: pointer;
  font-size: 1rem;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.lang-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.lang-btn:hover::before {
  left: 100%;
}

.lang-btn:hover {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  min-width: 150px;
  z-index: 1000;
  opacity: 0;
  transform: translateY(-10px);
  transition: all var(--transition-medium);
}

.lang-dropdown.show {
  opacity: 1;
  transform: translateY(0);
}

.lang-option {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  background: none;
  text-align: right;
  cursor: pointer;
  transition: var(--transition-fast);
  border-bottom: 1px solid var(--border-color);
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: var(--bg-primary);
  color: var(--primary-color);
}

/* Enhanced Main Header */
.main-header {
  background: var(--bg-secondary);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: all var(--transition-medium);
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-medium);
}

.container.nav-flex {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 2rem;
}

.logo-block {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  transition: var(--transition-medium);
}

.logo-block:hover {
  transform: scale(1.05);
}

.logo-img {
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
  overflow: hidden;
}

.logo-img:hover {
  transform: rotate(5deg);
  box-shadow: var(--shadow-medium);
}

.logo-img img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: var(--transition-medium);
  display: block;
}

.logo-img:hover img {
  transform: scale(1.1);
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.logo-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.logo-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Enhanced Navigation */
.main-nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.main-nav a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  padding: 0.8rem 1.2rem;
  border-radius: var(--border-radius);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

/* Ensure icons inside translated elements keep layout */
.main-nav a .i18n-text { display: inline; }

.main-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 71, 161, 0.1), transparent);
  transition: left 0.5s;
}

.main-nav a:hover::before {
  left: 100%;
}

.main-nav a i {
  font-size: 1.1em;
  transition: var(--transition-fast);
}

.main-nav a:hover {
  color: var(--primary-color);
  background: rgba(13, 71, 161, 0.05);
  transform: translateY(-2px);
}

.main-nav a:hover i {
  transform: scale(1.2);
}

.main-nav a.active,
.main-nav a.active:hover {
  color: var(--primary-color);
  background: rgba(13, 71, 161, 0.1);
  font-weight: 600;
}

.main-nav a.active i,
.main-nav a.active:hover i {
  color: var(--secondary-color);
}

/* Mobile Menu Button - Consolidated */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  position: relative;
  border-radius: 6px;
  transition: all 0.3s ease;
  min-height: 48px;
  min-width: 48px;
}

.mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.mobile-menu-btn.active {
  background: var(--primary-color);
  color: #fff;
}

.mobile-menu-btn span {
  width: 100%;
  height: 3px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
  display: block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation - Consolidated */
@media (max-width: 900px) {
  .mobile-menu-btn {
    display: flex !important;
  }
  
  .main-nav {
    display: none;
  }
  
  .main-nav.mobile-active {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
    transform: translateX(0);
    animation: slideInFromRight 0.3s ease-out;
  }
  
  .main-nav.mobile-active a {
    color: white !important;
    font-size: 1.3rem;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-align: center;
    min-width: 220px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
  
  .main-nav.mobile-active a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }
  
  .main-nav.mobile-active a i {
    margin-left: 0.8rem;
    font-size: 1.2rem;
  }
}

/* Tablet Specific Enhancements */
@media (min-width: 601px) and (max-width: 900px) {
  .main-nav.mobile-active a {
    font-size: 1.4rem;
    padding: 1.5rem 3rem;
    min-width: 250px;
  }
  
  .main-nav.mobile-active a i {
    margin-left: 1rem;
    font-size: 1.3rem;
  }
}

/* Mobile Specific Enhancements */
@media (max-width: 600px) {
  body {
    overflow-x: hidden;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  .main-nav.mobile-active {
    animation: slideInFromRight 0.3s ease-out;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1000;
  }

  /* overlay visibility is controlled via JS to avoid blocking clicks */
  .menu-overlay { 
    display: none; 
  }

  .main-nav a:focus,
  .btn:focus,
  .mobile-menu-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
  }

  .hero-content {
    padding: 2rem 1rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

  .product-cards-grid {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .product-card {
    min-width: 200px;
    padding: 1.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .quick-links {
    flex-direction: column;
    gap: 1rem;
  }

  .quick-link {
    padding: 1rem;
    text-align: center;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-section {
    width: 100%;
  }

  .back-to-top {
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .floating-elements {
    display: none;
  }

  .carousel-section .carousel {
    height: clamp(200px, 38vh, 260px);
  }

  .carousel-section .carousel img {
    object-position: center;
  }

  .carousel-section .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .carousel-section .carousel-btn:first-child {
    left: 10px;
  }

  .carousel-section .carousel-btn:last-child {
    right: 10px;
  }
}



/* Animation for mobile menu */
@keyframes slideInFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}

/* Enhanced overall styling */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

.hero-content {
  text-align: center;
  color: white;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

/* Enhanced product cards */
.product-card {
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
}

/* Enhanced service cards */
.service-card {
  transition: all 0.3s ease;
  border: 1px solid #e0e0e0;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

/* Enhanced stats section */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Enhanced quick links */
.quick-links {
  background: #f8f9fa;
  padding: 3rem 0;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 2rem;
  background: white;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.quick-link:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(255, 193, 7, 0.2);
}

.quick-link i {
  font-size: 1.5rem;
  color: var(--primary-color);
}

/* Enhanced footer */
.footer {
  background: #2c3e50;
  color: white;
  padding: 3rem 0 1rem;
}

.footer-section h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--primary-color);
}

/* Enhanced floating elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  color: rgba(255, 255, 255, 0.1);
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

/* Enhanced Buttons */

/* Enhanced Quick Links */
.quick-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 3rem 2rem;
  background: var(--bg-secondary);
  flex-wrap: wrap;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.5rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  text-decoration: none;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
}

.quick-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
  opacity: 0;
  transition: opacity var(--transition-medium);
  z-index: -1;
}

.quick-link:hover::before {
  opacity: 1;
}

.quick-link:hover {
  color: #fff;
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.quick-link i {
  font-size: 1.2em;
  transition: var(--transition-fast);
}

.quick-link:hover i {
  transform: scale(1.2);
}



.footer .footer-logo-block .logo-img img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
}

.footer .footer-logo-block .logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.footer .footer-logo-block .logo-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.footer .footer-logo-block .logo-sub {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.footer .footer-socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer .footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  transition: all var(--transition-medium);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.footer .footer-socials a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.footer .footer-socials a:hover::before {
  left: 100%;
}

.footer .footer-socials a:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-medium);
}

.footer .footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.footer .footer-bottom a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer .footer-bottom a:hover {
  color: var(--secondary-color);
}

/* Enhanced Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity var(--transition-slow);
}

.loading-content {
  text-align: center;
  color: #fff;
}

.loading-logo {
  margin-bottom: 2rem;
}

.loading-logo img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--secondary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced Notifications */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  z-index: 10000;
  transform: translateX(100%);
  opacity: 0;
  transition: all var(--transition-medium);
  max-width: 400px;
}

.notification.success {
  border-left: 4px solid var(--success-color);
}

.notification.error {
  border-left: 4px solid var(--error-color);
}

.notification.info {
  border-left: 4px solid var(--accent-color);
}

.notification.warning {
  border-left: 4px solid var(--warning-color);
}

.notification-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.2rem;
  border-radius: 50%;
  transition: var(--transition-fast);
  margin-left: auto;
}

.notification-close:hover {
  background: var(--bg-primary);
  color: var(--text-primary);
}

/* Enhanced Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-heavy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 1000;
  transform: translateY(100%);
  opacity: 0;
  animation: slideUp 0.5s ease forwards;
}

@keyframes slideUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-message {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex: 1;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
}

.cookie-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition-fast);
}

.cookie-btn.accept {
  background: var(--success-color);
  color: #fff;
}

.cookie-btn.decline {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.cookie-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
}

/* Enhanced Carousel */
.carousel-section {
  padding: 3rem 0;
  background: #f8f9fa;
}

.carousel-section .carousel {
  height: clamp(220px, 45vh, 400px);
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.carousel-section .carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--transition-slow);
  display: block;
  max-width: 100%;
  border-radius: 15px;
}

.carousel-section .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--primary-color);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-section .carousel-btn:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-section .carousel-btn:first-child {
  left: 20px;
}

.carousel-section .carousel-btn:last-child {
  right: 20px;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
  }
  
  .product-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .product-card {
    min-width: 150px;
    padding: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .hero-content p {
    font-size: 1.1rem;
  }
  
  .product-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .product-card {
    min-width: 200px;
    padding: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .carousel-section .carousel {
    height: 200px;
  }
  
  .carousel-section .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .carousel-section .carousel-btn:first-child {
    left: 10px;
  }
  
  .carousel-section .carousel-btn:last-child {
    right: 10px;
  }
}

/* Enhanced Comments Section */
.comments-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.comments-section h1,
.comments-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.comments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.comment {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  border: 1px solid var(--border-color);
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.comment-author {
  font-weight: 600;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.comment-date {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.comment-rating {
  color: var(--secondary-color);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.comment-text {
  color: var(--text-primary);
  line-height: 1.6;
}

.comment-form-container {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  max-width: 600px;
  margin: 0 auto;
}

.comment-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--primary-color);
}

.form-group input,
.form-group textarea {
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: var(--border-radius);
  font-family: inherit;
  transition: all var(--transition-medium);
  background: var(--bg-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
  background: #fff;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.rating-stars {
  display: flex;
  gap: 0.5rem;
  font-size: 1.5rem;
  color: #ddd;
}

.rating-stars .star {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.rating-stars .star:hover,
.rating-stars .star.selected {
  color: #ffd700;
  transform: scale(1.1);
}

.comment-form button {
  background: var(--primary-color);
  color: #fff;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.comment-form button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Enhanced Contact Section */
.contact-section {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.contact-box {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
  max-width: 1000px;
  margin: 0 auto;
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
}

.contact-box h1, .contact-box h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.contact-box .contact-desc {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.contact-form {
  min-width: 320px;
  max-width: 480px;
  flex: 1;
}

.contact-info {
  flex: 1;
  min-width: 260px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3.5rem;
}

@media (max-width: 900px) {
  .contact-box {
    flex-direction: column;
    gap: 2rem;
    padding: 1.5rem;
  }
  .contact-info {
    margin-top: 1.5rem;
  }
}

/* Enhanced Contact Content Layout */
.contact-content {
  display: flex;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all var(--transition-medium);
}

.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

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

.contact-details h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.contact-details p {
  color: var(--text-secondary);
  margin: 0;
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Enhanced About Section */
.about-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-section p,
.about-section .about-text {
  color: #222 !important;
  font-weight: 500;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-primary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

/* اجبار لون الخط في كروت الإحصائيات ليكون أسود دائماً مهما حصل من JS أو أي override */
.stat-number,
.stat-label {
  color: #222 !important;
  background: none !important;
  /* حتى لو أضيف أي inline style أو JS */
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #222 !important; /* اجبر اللون على الأسود */
  background: none !important;
  margin-bottom: 0.5rem;
  transition: var(--transition-medium);
}

.stat-label {
  font-size: 1rem;
  color: #222 !important; /* اجبر اللون على الأسود */
  background: none !important;
  font-weight: 500;
}

/* Enhanced Products Grid */
.products-grid, .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card, .project-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.product-card::before, .project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.product-card:hover::before, .project-card:hover::before {
  left: 100%;
}

.product-card:hover, .project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.product-card img, .project-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-medium);
  display: block;
}

@media (max-width: 600px) {
  .product-card img, .project-card img {
    height: 180px;
    object-position: center;
  }
}

.product-card:hover img, .project-card:hover img {
  transform: scale(1.1);
}

.product-card h3, .project-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
}

.product-card p, .project-card p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Enhanced Section Styling */
section {
  padding: 4rem 0;
  position: relative;
  background: #fff;
}

.contact-section,
.about-section {
  background: var(--bg-primary);
}

/* Enhanced Form Styling */
.contact-form input,
.contact-form textarea {
  width: 100%;
  font-size: 1rem;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
}

.contact-section h2,
.about-section h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

/* Enhanced Carousel Styling */
.carousel-section {
  background: var(--bg-primary);
}

.carousel-section .carousel-wrapper {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.carousel-section .section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

.footer .footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer .footer-col ul {
  list-style: none;
  padding: 0;
}

/* Touch-friendly improvements for mobile */
@media (max-width: 600px) {
  .btn {
    min-height: 44px;
    min-width: 44px;
  }
  

  
  .carousel-section .carousel-btn {
    min-height: 44px;
    min-width: 44px;
  }
  
  .lang-btn {
    min-height: 44px;
    padding: 0.5rem 1rem;
  }
  
  .top-bar-link {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}



/* Responsive Design Enhancements */
@media (max-width: 900px) {
  /* Improve touch targets */
  .main-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Better spacing for tablets */
  .container {
    padding: 0 1.5rem;
  }
  
  /* Improve readability */
  .hero h1 {
    line-height: 1.2;
  }
  
  .hero p {
    line-height: 1.6;
  }
  
  /* Better card layout */
  .product-card, .project-card {
    min-height: 300px;
  }
  
  /* Improve form usability */
  .contact-form input,
  .contact-form textarea {
    min-height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-secondary);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    box-shadow: var(--shadow-light);
  }

  .main-nav a {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }

  .main-nav {
    display: flex;
  }
}

/* Enhanced Animations */
@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* AOS Animation Classes */
[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos].aos-animate {
  opacity: 1;
}

/* Enhanced Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #1565c0;
}

/* Enhanced Selection */
::selection {
  background: var(--primary-color);
  color: #fff;
}

/* Enhanced Focus Styles */
*:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    flex-direction: column;
    background: var(--bg-secondary);
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    box-shadow: var(--shadow-light);
  }

  .main-nav a {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (min-width: 769px) {
  .mobile-menu-btn {
    display: none;
  }

  .main-nav {
    display: flex;
  }
}

/* Enhanced Stats Section */
.stats-section {
  padding: 4rem 0;
  background: #fff;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="stats-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23stats-grain)"/>'); /* ...existing code... */
  opacity: 0.3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.stat-item:hover::before {
  left: 100%;
}

.stat-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-heavy);
}

.stat-icon {
  font-size: 3rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  transition: var(--transition-medium);
}

.stat-item:hover .stat-icon {
  transform: scale(1.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #222 !important; /* اجبر اللون على الأسود */
  background: none !important;
  margin-bottom: 0.5rem;
  transition: var(--transition-medium);
}

.stat-label {
  font-size: 1rem;
  color: #222 !important; /* اجبر اللون على الأسود */
  background: none !important;
  font-weight: 500;
}

/* Enhanced Services Section */
.services-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.service-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(13, 71, 161, 0.1), transparent);
  transition: left 0.5s;
}

.service-card:hover::before {
  left: 100%;
}

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

.service-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition-medium);
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-icon i {
  font-size: 2rem;
  color: #fff;
}

.service-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Enhanced Testimonials Section */
.testimonials-section {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.testimonial-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 193, 7, 0.1), transparent);
  transition: left 0.5s;
}

.testimonial-card:hover::before {
  left: 100%;
}

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

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

.rating-stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
  justify-content: center;
}

.rating-stars i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  text-align: center;
}

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

.testimonial-author strong {
  display: block;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.testimonial-author span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Enhanced CTA Section */
.cta-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-grain)"/>'); /* ...existing code... */
  opacity: 0.3;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

/* Enhanced Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-element {
  position: absolute;
  color: rgba(255, 255, 255, 0.1);
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.floating-element:nth-child(3) {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}



/* Enhanced Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-medium);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  z-index: 50;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: linear-gradient(135deg, #1565c0 0%, var(--primary-color) 100%);
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

/* Enhanced Hero Content */

/* Enhanced Social Links */
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Quick actions floating buttons */
.quick-actions {
  position: fixed;
  bottom: 90px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
}
.qa-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-medium);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.qa-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-heavy); }
.qa-whatsapp { background: #25D366; }
.qa-call { background: var(--secondary-color); color: var(--primary-color); }

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
  border-radius: 50%;
  transition: all var(--transition-medium);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.social-links a:hover::before {
  left: 100%;
}

.social-links a:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-medium);
}

/* Enhanced Section Titles */
.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-radius: 2px;
}

/* Enhanced Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Enhanced Gallery Section */
.gallery-section {
  padding: 4rem 0;
  background: var(--bg-primary);
}

/* Enhanced Responsive Design */
@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 0 1rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 0 1rem;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 0 1rem;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-content p {
    font-size: 1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }
}

@media (max-width: 600px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0 0.5rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    padding: 0 0.5rem;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
    padding: 0 0.5rem;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
  
  .cta-content p {
    font-size: 0.95rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .floating-elements {
    display: none;
  }
  
  .back-to-top {
    bottom: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }
}

/* Enhanced Loading Animations */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-number.animated {
  animation: countUp 1s ease-out;
}

/* Enhanced Hover Effects */
.service-card:hover .service-icon {
  animation: pulse 1s ease-in-out;
}



/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Enhanced Focus Indicators */
*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Enhanced Print Styles */
@media print {
  .stats-section,
  .services-section,
  .testimonials-section,
  .cta-section,
  .floating-elements,
  .back-to-top {
    display: none !important;
  }
  
  .hero {
    height: auto !important;
    min-height: auto !important;
  }
  
  .hero-bg-img {
    display: none !important;
  }
  
  .hero-content {
    color: #000 !important;
  }
}

/* لا يوجد نص ساعات العمل في CSS، لا حاجة لأي تعديل */

/* Projects Page Specific Styles */
.projects-hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 50%, #1976d2 100%);
  position: relative;
  overflow: hidden;
  padding: 4rem 0;
  text-align: center;
}

.projects-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/>'); /* ...existing code... */
  opacity: 0.3;
}

.projects-hero .hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.projects-hero .hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.projects-hero .hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.projects-categories {
  padding: 4rem 0;
  background: var(--bg-primary);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all var(--transition-medium);
  cursor: pointer;
  position: relative;
  transform: translateY(0);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.project-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

@media (max-width: 600px) {
  .project-card-image img {
    object-position: center;
  }
}

.project-card:hover .project-card-image img {
  transform: scale(1.1);
}

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(13, 71, 161, 0.8) 0%, rgba(21, 101, 192, 0.6) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.project-card:hover .project-card-overlay {
  opacity: 1;
}

.project-card-overlay i {
  color: #fff;
  font-size: 2rem;
  transform: translateX(0);
  transition: transform var(--transition-medium);
}

.project-card:hover .project-card-overlay i {
  transform: translateX(-10px);
}

.project-card-content {
  padding: 1.5rem;
}

.project-card-content h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.project-card-content h3 i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.project-card-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.project-stats span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.project-stats i {
  color: var(--primary-color);
}

.projects-stats-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, #1565c0 100%);
  color: #fff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.projects-stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/>'); /* ...existing code... */
  opacity: 0.3;
}

.projects-stats-section .stats-grid {
  position: relative;
  z-index: 2;
}

.projects-stats-section .stat-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.projects-stats-section .stat-item:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.projects-stats-section .stat-icon {
  color: var(--secondary-color);
}

.projects-stats-section .stat-number {
  color: #fff;
}

.projects-stats-section .stat-label {
  color: rgba(255, 255, 255, 0.9);
}

/* Responsive Design for Projects Page */
@media (max-width: 900px) {
  .projects-hero .hero-title {
    font-size: 2.5rem;
  }
  
  .projects-hero .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

@media (max-width: 600px) {
  .projects-hero .hero-title {
    font-size: 2rem;
  }
  
  .projects-hero .hero-subtitle {
    font-size: 1rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .project-card-content {
    padding: 1rem;
  }
  
  .project-stats {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
  }
}

/* UPVC Colors Section Styles */
.upvc-colors-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e3f2fd 100%);
  position: relative;
  overflow: hidden;
}

.upvc-colors-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(13,71,161,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/>'); /* ...existing code... */
  opacity: 0.5;
}

.upvc-colors-section .container {
  position: relative;
  z-index: 1;
}

.upvc-colors-section .section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.color-models-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.color-model-card {
  background: var(--bg-secondary);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  transition: var(--transition-medium);
  border: 1px solid var(--border-color);
}

.color-model-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.color-swatch {
  position: relative;
  overflow: hidden;
}

.color-swatch img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition-medium);
}

@media (max-width: 600px) {
  .color-swatch img {
    height: 180px;
    object-position: center;
  }
}

.color-model-card:hover .color-swatch img {
  transform: scale(1.05);
}

.color-info {
  padding: 2rem;
}

.color-info h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.color-info p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.color-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.color-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.color-list li:last-child {
  border-bottom: none;
}

.color-name {
  font-weight: 600;
  color: var(--primary-color);
  margin-left: 0.5rem;
  min-width: 120px;
}

.color-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.color-features span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.color-features i {
  color: var(--primary-color);
  font-size: 0.8rem;
}

.color-benefits {
  margin-top: 3rem;
}

.color-benefits h3 {
  text-align: center;
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.benefit-item {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
  border: 1px solid var(--border-color);
}

.benefit-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

.benefit-item i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: block;
}

.benefit-item h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.benefit-item p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Responsive Design for UPVC Colors Section */
@media (max-width: 900px) {
  .upvc-colors-section {
    padding: 3rem 0;
  }
  
  .color-models-grid {
    gap: 1.5rem;
  }
  
  .color-info {
    padding: 1.5rem;
  }
  
  .color-info h3 {
    font-size: 1.3rem;
  }
  
  .benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
  }
  
  .benefit-item {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) {
  .upvc-colors-section {
    padding: 2rem 0;
  }
  
  .upvc-colors-section .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }
  
  .color-swatch img {
    height: 200px;
  }
  
  .color-info {
    padding: 1rem;
  }
  
  .color-info h3 {
    font-size: 1.2rem;
  }
  
  .color-features {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .color-features span {
    justify-content: center;
  }
  
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .benefit-item {
    padding: 1rem;
  }
  
  .benefit-item i {
    font-size: 2rem;
  }
  
  .benefit-item h4 {
    font-size: 1.1rem;
  }
}

/* Tablet Specific Enhancements */
@media (min-width: 601px) and (max-width: 900px) {
  /* Show mobile menu button on tablets */
  .mobile-menu-btn {
    display: flex !important;
  }
  
  /* Hide desktop navigation on tablets */
  .main-nav {
    display: none;
  }
  

  
  .hero {
    height: 75vh;
    min-height: 600px;
  }
  
  .hero h1 {
    font-size: 3.2rem;
  }
  
  .hero p {
    font-size: 1.3rem;
  }
  
  .product-cards-grid {
    flex-wrap: wrap !important;
    gap: 1.5rem !important;
    justify-content: center !important;
  }
  
  .product-card {
    min-width: 160px !important;
    padding: 1.5rem !important;
    border-radius: 12px !important;
  }
  
  .product-card-icon {
    font-size: 2.5rem !important;
  }
  
  .product-card-title {
    font-size: 1rem !important;
    font-weight: 600 !important;
  }
  
  /* Better tablet spacing */
  .container {
    padding: 0 2rem;
  }
  
  /* Improve tablet typography */
  .hero h1 {
    line-height: 1.2;
  }
  
  .hero p {
    line-height: 1.6;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .footer .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}
