:root { --brand-color: #3baddb; --text-color: #212529; --light-bg: #ffffff; --secondary-bg: #f8f9fa; }
        body { font-family: 'Tajawal', sans-serif; background-color: var(--light-bg); color: var(--text-color); }
        html { scroll-behavior: smooth; }
        #preloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 9999; background-color: var(--secondary-bg); display: flex; flex-direction: column; justify-content: center; align-items: center; transition: opacity 0.5s ease, visibility 0.5s ease; visibility: visible; opacity: 1; }
        #preloader.hidden { opacity: 0; visibility: hidden; }

        .square-spinner { width: 150px; height: 150px; position: relative; display: flex; justify-content: center; align-items: center; background-color: white; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }
        .square-spinner::before, .square-spinner::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 12px; border: 3px solid transparent; animation: draw-square 2s linear infinite; }
        .square-spinner::after { animation-delay: -1s; }
        .square-spinner img { width: calc(100% - 16px); height: auto; }
        
        #preloader h1 { color: var(--text-color); margin-top: 1.5rem; font-size: 2rem; }

        .animated-logo-frame { position: relative; display: inline-flex; justify-content: center; align-items: center; background-color: white; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transition: transform 0.3s ease; }
        .animated-logo-frame:hover { transform: scale(1.05); }
        .animated-logo-frame::before, .animated-logo-frame::after { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: inherit; border: 3px solid transparent; animation: draw-square 2s linear infinite; }
        .animated-logo-frame::after { animation-delay: -1s; }
        .animated-logo-frame img { width: 100%; height: 100%; object-fit: contain; }
        
        .navbar-brand .animated-logo-frame { width: 60px; height: 60px; padding: 8px; border-radius: 10px; }
        
        @keyframes draw-square { 0%   { clip-path: inset(0 100% 0 0); border-top-color: var(--brand-color); } 25%  { clip-path: inset(0 0 0 0);   border-top-color: var(--brand-color); border-right-color: var(--brand-color); } 50%  { clip-path: inset(0 0 0 0);   border-top-color: var(--brand-color); border-right-color: var(--brand-color); border-bottom-color: var(--brand-color); } 75%  { clip-path: inset(0 0 0 0);   border-top-color: transparent; border-right-color: var(--brand-color); border-bottom-color: var(--brand-color); border-left-color: var(--brand-color); } 100% { clip-path: inset(0 0 100% 0); border-color: transparent; border-left-color: var(--brand-color); } }
        
        @keyframes zoomIn { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: scale(1); } }
        @keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
        .animate-on-load { opacity: 0; animation-fill-mode: forwards; }
        .hero-text-box.animate-on-load { animation: zoomIn 0.8s 0.2s ease-out forwards; }
        .btn-primary.animate-on-load { animation: fadeInUp 0.8s 0.5s ease-out forwards; }
        
        .navbar { background-color: rgba(255, 255, 255, 0.85) !important; backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); padding-top: 5px; padding-bottom: 5px; }
        .nav-link { font-weight: 500; font-size: 1.1rem; margin: 0 10px; padding: 8px 5px; color: #555 !important; position: relative; transition: color 0.3s ease; display: flex; align-items: center; }
        #home { background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('img/background.jpg'); background-size: cover; background-position: center; min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
        
        .hero-text-box { background-color: rgba(255, 255, 255, 0.8); backdrop-filter: blur(10px); padding: 2.5rem 3rem; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.25); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); }
        .hero-content h1 { font-size: 4.5rem; font-weight: 700; color: #1a1a1a; margin-bottom: 0.5rem; }
        .hero-content p { font-size: 1.5rem; color: #333; }
        
        .pulsating-text { animation: pulse-glow 2.5s ease-in-out infinite; }
        @keyframes pulse-glow {
            0%, 100% { opacity: 1; text-shadow: 0 0 5px rgba(59, 173, 219, 0.5); }
            50% { opacity: 0.7; text-shadow: 0 0 15px rgba(59, 173, 219, 1); }
        }
        
        .btn-primary { background-color: var(--brand-color); border-color: var(--brand-color); padding: 14px 40px; font-size: 1.1rem; font-weight: 700; border-radius: 50px; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(59, 173, 219, 0.3); margin-top: 2.5rem; }
        section { padding: 100px 0; overflow-x: hidden; }
        #products { background-color: var(--secondary-bg); }
        .section-title { text-align: center; margin-bottom: 40px; font-size: 2.8rem; font-weight: 700; position: relative; padding-bottom: 20px; color: #111; }
        .section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background-color: var(--brand-color); border-radius: 2px; }
        
        #product-filters { list-style: none; padding: 0; margin-bottom: 50px; }
        #product-filters li { cursor: pointer; display: inline-block; padding: 10px 22px; font-size: 1.1rem; font-weight: 600; margin: 0 8px; border-radius: 50px; background-color: #fff; border: 1px solid #ddd; transition: all 0.3s; }
        #product-filters li:hover, #product-filters li.active { background-color: var(--brand-color); color: #fff; border-color: var(--brand-color); }
        .product-item { transition: transform 0.4s ease, opacity 0.4s ease; will-change: transform, opacity; }
        .product-item.hide { transform: scale(0.9); opacity: 0; }

        .card { border: 1px solid #e9ecef; transition: all 0.4s ease; border-radius: 12px; overflow: hidden; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }
        .card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1); }
        
        .card .card-img-top { transition: transform 0.4s ease; }
        .card:hover .card-img-top { transform: scale(1.1); }
        
        #map-container { border-radius: 12px; overflow: hidden; border: 1px solid #dee2e6; }
        #contact-form .form-control { border-radius: 8px; }
        
        footer { background-color: #2c3e50; color: #bdc3c7; padding: 50px 0 30px 0; }
        footer .footer-brand-info img { height: 70px; width: 70px; background-color: #ffffff; border-radius: 12px; padding: 5px; margin-bottom: 1rem; }

        @media (max-width: 767.98px) {
            .hero-text-box { padding: 2rem 1.5rem; }
            .hero-content h1 { font-size: 3rem; }
            .hero-content p { font-size: 1.2rem; }
            #product-filters li { padding: 8px 15px; font-size: 1rem; margin: 0 4px; }
        }