﻿/* Custom CSS for Spare Station Homepage */

/* Import AOS for animations */
@import url("https://unpkg.com/aos@2.3.1/dist/aos.css");

/* Root Variables */
:root {
    --primary-color: #1E46B6;
    --secondary-color: #1e46b6e3;
    --accent-color: #ffc107;
    --text-dark: #333333;
    --text-muted: #6c757d;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --border-color: #dee2e6;
}

/* Global Styles */
body {
    font-family: "Cairo", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
}

/* Header Styles */
.navbar {
  padding: 0rem 0;
  border-bottom: 1px solid var(--border-color);
}

.navbar-brand img {
    max-height: 60px;
    height: auto;
    width: auto;
}

.nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.nav-link:hover {
    color: #1E46B6 !important;
}


/* Responsive Navbar */
.navbar-toggler {
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: var(--primary-color);
}

    .navbar-toggler:focus {
        box-shadow: none;
    }

.navbar-collapse {
    transition: all 0.3s ease;
}

@media (max-width: 992px) {
    .navbar-nav {
        background: var(--white);
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem;
    }

        .navbar-nav .nav-link {
            display: block;
            margin: 0.5rem 0;
            text-align: center;
        }

    .navbar-brand img {
        max-height: 50px;
        
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.5rem 0;
    }

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


.floating-compare-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background-color: #1E46B6;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 1050;
    text-decoration: none;
    transition: transform 0.2s ease;
}

    .floating-compare-btn:hover {
        transform: scale(1.1);
        color: white;
    }

    .floating-compare-btn .compare-count {
        position: absolute;
        top: -5px;
        right: -5px;
    }

.hero-overlay {
  width: 100%;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.search-form-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 2rem;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-btn {
    background-color: #1E46B6;
    border: none;
    padding: 0.36rem 1rem;
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.search-btn:hover {
  background-color: #365a9b;
  transform: translateY(-2px);
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 5px;
    padding: 0.35rem 1rem;
    transition: border-color 0.3s ease;
}

    .form-control:focus {
        border-color: #1E46B6;
        box-shadow: 0 0 0 0.2rem rgba(68, 114, 196, 0.25);
    }

/* Service Features */
.service-features {
  background: var(--white);
}

.service-card {
  padding: 2rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  height: 100%;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1E46B6, #5a7bc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.service-card h5 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Applications Section */
.applications-section {
    position: relative;
    background-image: url('/Img/Image1.png');
    background-repeat: no-repeat;
    background-position: calc(110% + 70px) center;
    background-size: 25% auto;
}

.app-card {
  background: white;
  padding: 2rem 1rem;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

    .app-card:hover {
        transform: translateY(-5px);
        border-color: #1E46B6;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

    .app-card i {
        font-size: 3rem;
        color: #1E46B6;
        margin-bottom: 1rem;
    }

.app-card p {
  font-weight: 500;
  color: var(--text-dark);
  margin: 0;
}

/* Product Cards */
.product-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  height: 100%;
}

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

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--secondary-color);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-info {
  padding: 1rem;
}

.product-info h6 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.product-code {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.product-rating {
  margin-bottom: 0.5rem;
}

.product-rating i {
  color: #ffc107;
  font-size: 0.8rem;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1E46B6;
    margin-bottom: 0.5rem;
}

.product-brand {
  margin-bottom: 1rem;
}

.product-brand img {
  height: 20px;
  opacity: 0.7;
}

.btn-primary {
    background-color: #1E46B6;
    border-color: #1E46B6;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #365a9b;
  border-color: #365a9b;
  transform: translateY(-1px);
}

/* Small Product Cards */
.product-card.small {
  margin-bottom: 1rem;
}

.product-card.small .product-image img {
  height: 150px;
}

.product-card.small .product-info {
  padding: 0.75rem;
}

.product-card.small h6 {
  font-size: 0.8rem;
}

/* About Section */
.about-section {
    background: #ECEFF9;
}

.about-content h2 {
    color: #1E46B6;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.stats-row {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

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

    .stat-item h3 {
        font-size: 2.5rem;
        font-weight: 700;
        color: #1E46B6;
        margin-bottom: 0.5rem;
    }

    .stat-item h4 {
        font-size: 2.1rem;
        font-weight: 600;
        color: #1E46B6;
        margin-bottom: 0.5rem;
    }

.stat-item p {
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Who We Are Section */
.who-we-are {
  background: white;
}

.who-content h2 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.who-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.features-list {
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.feature-item i {
  margin-left: 1rem;
  font-size: 1.2rem;
}

    .feature-item span {
        color: #1E46B6;
        font-weight: 500;
    }

.who-image img {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Featured Products Section */
.featured-products {
    background: white;
}

.featured-center {
  background: linear-gradient(135deg, #1E46B6, #5a7bc4);
  border-radius: 15px;
  padding: 3rem 2rem;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.featured-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

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

.featured-content .btn {
  background: white;
  color: #1E46B6;
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.featured-content .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.featured-image {
  margin-top: 2rem;
}

.featured-image img {
    max-width: 600px;
    opacity: 0.9;
    height: 330px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(0, 0, 0, 0.0), rgba(0, 0, 0, 0.0)), url('/Img/Image3.png');
    background-color: #ECEFF9;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: #1E46B6;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
}

.cta-section p {
  font-size: 1.2rem;
  opacity: 0.9;
}

.btn-light {
    background: #1E46B6;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Car Brands Section */
.car-brands {
  background: var(--bg-light);
}

.brand-logo {
  padding: 1rem;
  background: white;
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.brand-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.brand-logo img {
  max-height: 60px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.brand-logo:hover img {
  opacity: 1;
}

/* Footer */
.footer {
    background: #ECEFF9;
    border-top: 1px solid var(--border-color);
}

.footer h5,
.footer h6 {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer p {
  color: var(--text-muted);
  line-height: 1.6;
}

.contact-info {
  margin-top: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.contact-item i {
  margin-left: 0.75rem;
  color: #1E46B6;
  width: 20px;
}

.social-links a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: #1E46B6;
  color: white;
  text-align: center;
  line-height: 40px;
  border-radius: 50%;
  margin-left: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  background: #365a9b;
  transform: translateY(-2px);
}

.payment-methods img {
  height: 30px;
  margin-right: 0.5rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.payment-methods img:hover {
  opacity: 1;
}

/* Chat Button */
.chat-button {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1000;
}

.chat-button .btn {
  width: 60px;
  height: 60px;
  background: #1E46B6;
  border: none;
  box-shadow: 0 4px 20px rgba(68, 114, 196, 0.4);
  transition: all 0.3s ease;
}

.chat-button .btn:hover {
  background: #365a9b;
  transform: scale(1.1);
}

.chat-button i {
  font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .search-form-container {
    padding: 1rem;
  }

  .stats-row {
    flex-direction: column;
    gap: 1rem;
  }

  .featured-center {
    padding: 2rem 1rem;
  }

  .featured-content h3 {
    font-size: 1.5rem;
  }

  .cta-section h2 {
    font-size: 2rem;
  }

  .chat-button {
    bottom: 1rem;
    left: 1rem;
  }

  .chat-button .btn {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .app-card i {
    font-size: 2rem;
  }

  .stat-item h3 {
    font-size: 2rem;
  }
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Loading Animation */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #1E46B6;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

/* Hover Effects */
.hover-lift {
  transition: transform 0.3s ease;
}

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

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #1E46B6;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #365a9b;
}

.featured-products-layout {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 16px; 
}

.featured-column {
    flex-shrink: 0;
}

.featured-side {
    width: 392px;
}

.featured-main {
    width: 392px;
    max-width: 400px;
}
.featured-center {
    height: 100%;
}
.featured-center-vertical {
    background-color: #A9B9E3;
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.2) 0, rgba(255,255,255,0.2) 1px, transparent 1px, transparent 10px), repeating-linear-gradient(-45deg, rgba(255,255,255,0.2) 0, rgba(255,255,255,0.2) 1px, transparent 1px, transparent 10px);
    
    color: #192C6B; 

    padding: 2rem 1rem;
    border-radius: 10px;
    text-align: center;
}

    .featured-center-vertical .featured-image img {
        max-height: 350px;
        width: -webkit-fill-available;
    }
    .featured-center-vertical .btn-link-custom {
        color: var(--primary-color); 
        font-weight: bold;
        text-decoration: none;
        background-color: transparent;
        border: none;
        padding: 0.5rem 1rem;
        transition: all 0.3s ease;
    }

        .featured-center-vertical .btn-link-custom:hover {
            text-decoration: underline;
            opacity: 0.8;
        }
.featured-side .product-card.small {
    max-width: 200px; 
}

@media (max-width: 992pxpx) {
    .featured-products-layout {
        flex-direction: column;
        align-items: center;
    }
}

/* --- Footer Improvements --- */

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem; 
}

    .contact-item i {
        color: var(--primary-color);
    }

.footer-nav {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    align-items: center;
    gap: 0.5rem; 
}

.footer-nav-link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0 1rem; 
    position: relative;
    transition: color 0.3s ease;
}

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

    .footer-nav-link:not(:last-child)::after {
        content: '|';
        position: absolute;
        left: -2px; 
        top: 50%;
        transform: translateY(-50%);
        color: #ccc;
        font-weight: 100;
    }

.social-links {
    margin: 0;
}

.footer-brand {
    color: #1E46B6;
    font-weight: 700;
}


.s3arly-section {
    background-color: #ECEFF9; 
}

.s3arly-link {
    text-decoration: none;
    display: block;
}

.s3arly-box {
    background-color: var(--white);
    border: 2px dashed var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease-in-out;
}

.s3arly-link:hover .s3arly-box {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-style: solid;
}

.s3arly-title-group h2 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 0.25rem;
}

.s3arly-title-group p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

.s3arly-icon i {
    color: var(--primary-color);
    opacity: 0.7;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem; 
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

    .feature-item:last-child {
        margin-bottom: 0;
    }

    .feature-item i {
        color: var(--primary-color);
        font-size: 1.2rem;
    }

@media (max-width: 991px) {
    .s3arly-title-group {
        margin-bottom: 2rem;
    }
}

.category-scroll-container {
    overflow-x: auto;
    padding-bottom: 15px; 
    scrollbar-width: none; 
    scrollbar-color: #1E46B6 #f1f1f1; 
}

.category-items-wrapper {
    display: flex; 
    flex-wrap: nowrap; 
    gap: 1rem; 
}

.category-item {
    flex: 0 0 160px;  
    width: 160px;
}

.category-scroll-container::-webkit-scrollbar {
    height: 8px; 
}

.category-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1; 
    border-radius: 10px;
}

.category-scroll-container::-webkit-scrollbar-thumb {
    background: #1E46B6; 
    border-radius: 10px;
}

    .category-scroll-container::-webkit-scrollbar-thumb:hover {
        background: #365a9b; 
    }


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

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

.static-page-container {
    background-color: #ffffff;
    padding: 3rem;
    border-radius: 16px; 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06), 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #f0f0f0; 
    opacity: 0;
    animation: fadeInUp 0.8s 0.2s ease-out forwards; 
}

    .static-page-container h1 {
        font-weight: 800; 
        font-size: 2.3rem;
        background: linear-gradient(45deg, var(--primary-color), #5a7bc4);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 1rem;
    }

    .static-page-container h3 {
        color: var(--text-dark);
        font-weight: 700;
        margin-top: 3rem;
        margin-bottom: 1.5rem;
        padding-right: 15px; 
        position: relative;
        border: none; 
    }

        .static-page-container h3::before {
            content: '';
            position: absolute;
            right: 0;
            top: 50%;
            transform: translateY(-50%);
            height: 70%;
            width: 4px;
            background: linear-gradient(180deg, var(--primary-color), var(--accent-color));
            border-radius: 5px;
        }

    .static-page-container ul {
        padding-right: 10px;
        list-style: none;
    }

        .static-page-container ul li {
            position: relative;
            padding-right: 35px;
            margin-bottom: 1rem;
            line-height: 1.8;
            color: #444;
            opacity: 0;
            transform: translateX(20px);
            animation: fadeInUp 0.5s ease-out forwards;
        }

            .static-page-container ul li::before {
                content: '\f058'; 
                font-family: 'Font Awesome 6 Free';
                font-weight: 900;
                position: absolute;
                right: 0;
                top: 0;
                font-size: 1.1rem;
                color: var(--primary-color);
                background: white;
                border-radius: 50%;
                width: 24px;
                height: 24px;
                display: flex;
                align-items: center;
                justify-content: center;
                box-shadow: 0 2px 4px rgba(30, 70, 182, 0.1);
            }

            .static-page-container ul li:nth-child(1) {
                animation-delay: 0.3s;
            }

            .static-page-container ul li:nth-child(2) {
                animation-delay: 0.4s;
            }

            .static-page-container ul li:nth-child(3) {
                animation-delay: 0.5s;
            }

            .static-page-container ul li:nth-child(4) {
                animation-delay: 0.6s;
            }

            .static-page-container ul li:nth-child(5) {
                animation-delay: 0.7s;
            }
    .static-page-container p {
        line-height: 1.9;
        color: #555;
        margin-bottom: 1rem;
    }

        .static-page-container p.lead {
            font-size: 1.15rem;
            color: var(--text-muted);
        }