:root {
    --primary: #2D97D3;
    --secondary: #1A5F8A;
    --success: #25a25a;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
}

/* تصميم متجاوب للنافذة المنبثقة لطلب السعر */
.modal-dialog {
    max-width: 95%;
    width: auto;
    margin: 1rem;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
        margin: 1.75rem auto;
    }
}

@media (min-width: 768px) {
    .modal-dialog {
        max-width: 700px;
    }
}

@media (min-width: 992px) {
    .modal-dialog.modal-lg {
        max-width: 900px;
    }
}

/* تحسين عرض النموذج في الشاشات الصغيرة */
@media (max-width: 576px) {
    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer button {
        width: 100%;
    }

    .price-info {
        font-size: 0.9rem;
    }

    .row.g-3 {
        --bs-gutter-y: 0.75rem;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }

    .form-control,
    .form-select {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }
}

/* تحسين عرض قسم الأسعار التقديرية */
.price-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.price-info .row>div {
    padding: 0.5rem;
}

/* تأثيرات تفاعلية للنافذة المنبثقة */
.modal-content {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
    background-color: #f8f9fa;
}

/* تحسين نموذج الإدخال */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(45, 151, 211, 0.25);
}

/* تصميم الأزرار */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(45, 151, 211, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    transform: none;
}

/* تحسين عرض الأسعار */
#totalPrice {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

/* تأثيرات للحقول */
.form-control,
.form-select {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(45, 151, 211, 0.3);
}

/* تحسين عرض التنبيهات */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* تحسين عرض النموذج على الشاشات المتوسعة */
@media (min-width: 1200px) {
    .modal-dialog.modal-lg {
        max-width: 1000px;
    }
}

/* تحسين عرض النافذة المنبثقة في الشاشات الطويلة */
@media (max-height: 600px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
    }
}

/* تصميم متجاوب للنافذة المنبثقة لطلب السعر */
.modal-dialog {
    max-width: 90%;
    width: auto;
}

@media (min-width: 576px) {
    .modal-dialog {
        max-width: 500px;
    }
}

@media (min-width: 768px) {
    .modal-dialog {
        max-width: 700px;
    }
}

@media (min-width: 992px) {
    .modal-dialog.modal-lg {
        max-width: 900px;
    }
}

/* تحسين عرض النموذج في الشاشات الصغيرة */
@media (max-width: 576px) {
    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer button {
        width: 100%;
    }

    .price-info {
        font-size: 0.9rem;
    }
}

/* تحسين عرض قسم الأسعار التقديرية */
.price-info {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #e9ecef;
}

.price-info .row>div {
    padding: 0.5rem;
}

/* تأثيرات تفاعلية للنافذة المنبثقة */
.modal-content {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.modal-header {
    border-bottom: none;
    padding: 1.2rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
}

/* تحسين نموذج الإدخال */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(45, 151, 211, 0.25);
}

/* تصميم الأزرار */
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(45, 151, 211, 0.3);
}

/* تحسين عرض الأسعار */
#totalPrice {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1);
}

/* تأثيرات للحقول */
.form-control,
.form-select {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: rgba(45, 151, 211, 0.3);
}

/* تحسين عرض التنبيهات */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* تحسين عرض النموذج على الشاشات المتوسعة */
@media (min-width: 1200px) {
    .modal-dialog.modal-lg {
        max-width: 1000px;
    }
}

/* تعديل زر عرض السعر ليصبح مثل زر تغيير اللغة */
#submitPriceRequest {
    border: 2px solid #ffffff;
    color: #ffffff;
    border-radius: 39px;
    padding: 2px 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 2px;
    font-size: 0.9rem;
    white-space: nowrap;
    background-color: transparent;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* News Ticker Styles */
.news-ticker {
    position: relative;
    padding-inline-start: 120px;
    /* مساحة لزر الأخبار */
    transition: all 0.3s ease;
    z-index: 998;
}

.news-ticker.sticky {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 997;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-label {
    z-index: 10;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border-radius: 0 4px 4px 0;
    padding-left: 10px;
    animation: newsLabelPulse 2s ease-in-out infinite;
    transition: all 0.3s ease;
    inset-inline-start: 3px;
}

@keyframes newsLabelPulse {
    0% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}

.news-label i {
    font-size: 1.2rem;
}

.news-ticker-content {
    display: flex;
    animation: ticker 120s linear infinite;
    /* سرعة هادئة جداً للكمبيوتر */
    width: fit-content;
    will-change: transform;
}

.news-ticker-content:hover {
    animation-play-state: paused;
}

.news-item {
    white-space: nowrap;
    padding-inline-start: 40px;
    /* زيادة المسافة بين الأخبار لراحة العين */
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.news-item:hover {
    color: var(--primary) !important;
    /* يتغير لون النص عند الوقوف عليه بالماوس */
}

.ticker-logo {
    height: 32px;
    /* تكبير اللوجو ليكون أكثر وضوحاً */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15)) brightness(1.05);
    margin-inline-end: 12px;
}

@media (max-width: 768px) {
    .news-ticker {
        padding-inline-start: 80px !important;
    }

    .news-label {
        padding: 4px 10px !important;
        font-size: 0.85rem;
    }

    .news-label i {
        font-size: 1rem;
    }

    .news-ticker-content {
        animation-duration: 100s;
        /* سرعة هادئة جداً للموبايل والتابلت */
    }

    .ticker-logo {
        height: 24px;
    }

    .news-item {
        font-size: 0.95rem;
        font-weight: 500;
        padding-inline-start: 30px;
    }
}

@keyframes ticker {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

* {
    font-family: 'Cairo', 'Tajawal', 'Poppins', sans-serif;
}

/* Professional Loader Styles */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #ffffff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loader-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* Reduced gap as requested */
}

.loader-logo-container {
    position: relative;
    padding: 20px;
    padding: 20px;
    animation: professional-pulse 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Loading Dots Animation */
.loading-dots::after {
    content: ' .';
    animation: dotty 1.5s steps(5, end) infinite;
    display: inline-block;
    width: 15px;
    text-align: left;
}

@keyframes dotty {

    0%,
    20% {
        content: ' ';
    }

    40% {
        content: ' .';
    }

    60% {
        content: ' ..';
    }

    80%,
    100% {
        content: ' ...';
    }
}

@keyframes professional-pulse {
    0% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(45, 151, 211, 0.2));
        opacity: 1;
    }

    50% {
        transform: scale(1.08);
        /* Slightly larger scale */
        filter: drop-shadow(0 0 15px rgba(45, 151, 211, 0.6));
        /* Radiant glow */
        opacity: 0.95;
    }

    100% {
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(45, 151, 211, 0.2));
        opacity: 1;
    }
}

body.loader-active {
    overflow: hidden !important;
    height: 100vh;
}

body {
    color: #333;
    line-height: 1.6;
}

html[lang="en"] {
    font-family: 'Poppins', 'Montserrat', sans-serif;
    direction: ltr;
}

html[lang="en"] body {
    text-align: left;
}

.navbar-price-btn {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    padding: 6px 18px !important;
    border-radius: 50px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid var(--primary) !important;
    box-shadow: 0 4px 10px rgba(45, 151, 211, 0.2) !important;
    margin-inline-end: 10px;
}

.navbar-price-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(45, 151, 211, 0.4) !important;
    background-color: #2481b5 !important;
    color: white !important;
}

.navbar-lang-btn {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 50px !important;
    border-width: 1.5px !important;
    transition: all 0.3s ease !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.navbar-lang-btn:hover {
    background-color: var(--primary) !important;
    color: white !important;
}

/* Navbar Styling */
.navbar {
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    background-color: transparent !important;
    box-shadow: none;
    height: 70px;

}

.navbar.navbar-scrolled {
    background-color: #f2f5f7 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 0.3rem 0;
    height: 67px;
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 700;
    color: #dfd7d7 !important;
    letter-spacing: 0.5px;
}

.navbar.navbar-scrolled .navbar-brand {
    color: #333 !important;
}

.navbar-brand i {
    margin-left: 8px;
    color: var(--primary);
}

.nav-item {
    margin: 0 2px;
}

.nav-link {
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.8rem 1.2rem !important;
    transition: all 0.3s ease;
    position: relative;
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar.navbar-scrolled .nav-link {
    color: #555 !important;
}

.nav-link:hover,
.nav-link.active {
    color: #ffffff !important;
    transform: translateY(-2px);
}

.navbar.navbar-scrolled .nav-link:hover,
.navbar.navbar-scrolled .nav-link.active {
    color: var(--primary) !important;
}

@media (max-width: 991px) {
    .navbar-price-btn {
        margin-inline-end: 0;
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
        padding: 10px !important;
    }

    .navbar-lang-btn {
        width: 100%;
        text-align: center;
        padding: 8px !important;
    }

    .navbar-nav.ms-auto {
        margin-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 15px;
    }
}

.navbar.navbar-scrolled .nav-link.active {
    color: var(--primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    display: none;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
    display: none;
}

/* Navbar Toggler */
.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.navbar.navbar-scrolled .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.1);
}

.navbar.navbar-scrolled .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(45, 151, 211, 0.3);
}

.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.hero {
    position: relative;
    background-color: #000;
    /* Ensure dark background */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    text-decoration: none;
    z-index: 999;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background: #1fba56;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
}

.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: #2095d2;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(32, 149, 210, 0.4);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    background: #1a7bb8;
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 20px rgba(32, 149, 210, 0.5);
}

/* Responsive adjustments for buttons */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .scroll-to-top-btn {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .whatsapp-btn {
        bottom: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    .scroll-to-top-btn {
        bottom: 15px;
        left: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

.form-control,
.form-select {
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(45, 151, 211, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.shadow-sm {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.shadow {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

section {
    position: relative;
}

.bg-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: #222;
    font-weight: 600;
}

.text-primary {
    color: var(--primary) !important;
}

.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: var(--primary);
    font-weight: 600;
}

.accordion-button:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(45, 151, 211, 0.25);
}

footer {
    background: #f2f5f7;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--primary) !important;
}

.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

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

.display-4 {
    font-weight: 700;
}

.fw-bold {
    font-weight: 700;
}

.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 500;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .hero {
        height: auto !important;
        min-height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .display-4 {
        font-size: 2.5rem;
    }

    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .display-4 {
        font-size: 2rem;
    }

    .hero {
        height: auto !important;
        min-height: auto !important;
        aspect-ratio: 16 / 9;
    }

    .fs-5 {
        font-size: 1rem !important;
    }

    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
}

.table {
    margin-bottom: 0;
}

.table-hover tbody tr:hover {
    background-color: rgba(45, 151, 211, 0.05);
}

.badge-primary {
    background-color: var(--primary) !important;
}

.badge-success {
    background-color: var(--success) !important;
}

.badge-danger {
    background-color: var(--danger) !important;
}

.badge-info {
    background-color: var(--info) !important;
}

.breadcrumb-item {
    color: #666;
}

.breadcrumb-item.active {
    color: var(--primary);
}

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

a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

.modal-content {
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.modal-title {
    font-weight: 600;
    color: #222;
}

.btn-close:focus {
    box-shadow: 0 0 0 0.25rem rgba(45, 151, 211, 0.25);
}

.pagination .page-link {
    color: var(--primary);
    border-color: #ddd;
}

.pagination .page-link:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1200&h=400&fit=crop');
    background-size: cover;
    background-position: center;
    color: white !important;
    padding-top: 140px;
    padding-bottom: 80px;
    margin-top: 0;
}

.page-header h1,
.page-header p,
.page-header .text-muted {
    color: white !important;
}

/* Enhanced Responsive Hero Section */
.hero {
    position: relative;
    height: calc(100vh - 70px);
    min-height: 500px;
    max-height: 900px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    padding-top: 70px;
    margin-top: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    background: #000;
    min-width: 100%;
    min-height: 100%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.hero .container {
    z-index: 2;
    position: relative;
}

/* Desktop Styles (Large screens) */
@media (min-width: 1200px) {
    .hero {
        height: calc(100vh - 80px);
        min-height: 700px;
    }

    .hero h1 {
        font-size: 4rem !important;
        font-weight: 800;
        margin-bottom: 1.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    }

    .hero p {
        font-size: 1.4rem !important;
        line-height: 1.6;
        margin-bottom: 2rem;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    }

    .hero .btn {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
        margin: 0 0.5rem;
    }
}

/* Desktop Medium (Laptops) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero {
        height: calc(100vh - 75px);
        min-height: 600px;
    }

    .hero h1 {
        font-size: 3.5rem !important;
        margin-bottom: 1.25rem;
    }

    .hero p {
        font-size: 1.2rem !important;
        margin-bottom: 1.75rem;
    }
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 991px) {
    .hero {
        height: calc(85vh - 70px);
        min-height: 550px;
        max-height: 750px;
        padding-top: 70px;
        overflow: hidden;
    }

    .hero-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .hero h1 {
        font-size: 2.8rem !important;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem !important;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .hero .btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        margin: 0.25rem;
    }
}

/* Small Tablet / Large Mobile */
@media (min-width: 576px) and (max-width: 767px) {
    .hero {
        height: calc(75vh - 70px);
        min-height: 450px;
        max-height: 650px;
        padding-top: 70px;
        overflow: hidden;
    }

    .hero-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .hero h1 {
        font-size: 2.2rem !important;
        margin-bottom: 0.8rem;
        line-height: 1.1;
    }

    .hero p {
        font-size: 1rem !important;
        line-height: 1.4;
        margin-bottom: 1.25rem;
        padding: 0 1rem;
    }

    .hero .btn {
        width: 45%;
        margin: 0.25rem;
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* Mobile Styles */
@media (max-width: 575px) {
    .hero {
        height: calc(70vh - 70px);
        min-height: 400px;
        max-height: 600px;
        padding-top: 70px;
        overflow: hidden;
    }

    .hero-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
        margin-bottom: 0.75rem;
        line-height: 1.1;
        padding: 0 0.5rem;
    }

    .hero p {
        font-size: 0.95rem !important;
        line-height: 1.4;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .hero .btn {
        width: 100%;
        margin-bottom: 0.5rem;
        margin-right: 0 !important;
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .hero {
        height: calc(65vh - 70px);
        min-height: 350px;
        max-height: 550px;
        overflow: hidden;
    }

    .hero-video {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
        transform: scale(1.1);
    }

    .hero h1 {
        font-size: 1.6rem !important;
        margin-bottom: 0.5rem;
    }

    .hero p {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem;
    }
}

/* Enhanced Hero Content Styles */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero-title {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-buttons {
    gap: 1rem;
}

.hero-btn-primary,
.hero-btn-outline {
    transition: all 0.3s ease;
    border-radius: 50px;
    font-weight: 600;
    min-width: 160px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero-icon {
    display: inline-block;
    vertical-align: middle;
    line-height: 1;
    margin-left: 0.5rem;
    margin-right: 0;
}

.hero-btn-text {
    display: inline-block;
    vertical-align: middle;
}

.hero-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45, 151, 211, 0.4);
}

.hero-btn-outline:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
}

/* Mobile-specific hero button - Professional Small Horizontal Layout */
@media (max-width: 767px) {
    .hero-icon {
        font-size: 0.75rem !important;
        margin-left: 0.35rem !important;
        margin-right: 0 !important;
        display: inline-block !important;
        vertical-align: middle !important;
        line-height: 1 !important;
    }

    .hero-btn-text {
        display: inline-block !important;
        vertical-align: middle !important;
    }

    .hero-btn-primary,
    .hero-btn-outline {
        font-size: 0.75rem !important;
        padding: 0.5rem 1rem !important;
        min-width: auto !important;
        max-width: none !important;
        width: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto;
    }

    .hero-buttons {
        gap: 0.5rem !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 575px) {
    .hero-icon {
        font-size: 0.7rem !important;
        margin-left: 0.3rem !important;
        display: inline-block !important;
        vertical-align: middle !important;
    }

    .hero-btn-primary,
    .hero-btn-outline {
        font-size: 0.7rem !important;
        padding: 0.45rem 0.85rem !important;
        min-width: auto !important;
        width: auto !important;
        max-width: none !important;
    }

    .hero-buttons {
        gap: 0.4rem !important;
        flex-direction: row !important;
    }
}

@media (max-width: 480px) {
    .hero-icon {
        font-size: 0.65rem !important;
        margin-left: 0.25rem !important;
        display: inline-block !important;
    }

    .hero-btn-primary,
    .hero-btn-outline {
        font-size: 0.65rem !important;
        padding: 0.4rem 0.75rem !important;
        width: auto !important;
        max-width: none !important;
    }

    .hero-buttons {
        gap: 0.35rem !important;
        flex-direction: row !important;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .hero-icon {
        font-size: 0.6rem !important;
        margin-left: 0.2rem !important;
    }

    .hero-btn-primary,
    .hero-btn-outline {
        font-size: 0.6rem !important;
        padding: 0.35rem 0.65rem !important;
    }

    .hero-buttons {
        gap: 0.3rem !important;
    }
}

/* Video Fallback */
/* Fallback image removed - video only */

/* Video Loading States */
/* Video Loading States - Animation Removed */
.hero-video {
    opacity: 1 !important;
}

.hero-video.loading {
    opacity: 1 !important;
}

.hero-video.loaded {
    opacity: 1 !important;
}

/* Improved Video Performance */
@media (prefers-reduced-motion: reduce) {
    .hero-video {
        animation: none;
    }
}

.alert-primary {
    background-color: rgba(45, 151, 211, 0.1);
    color: var(--primary);
}

.alert-success {
    background-color: rgba(37, 162, 90, 0.1);
    color: var(--success);
}

.alert-danger {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

.list-group-item {
    border-color: #e0e0e0;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

.list-group-item.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
    color: var(--primary);
}

.nav-tabs {
    border-bottom: 2px solid #e0e0e0;
}

.nav-tabs .nav-link {
    color: #666;
    border: none;
    border-bottom: 3px solid transparent;
    padding-bottom: 0.75rem;
}

.nav-tabs .nav-link:hover {
    border-bottom-color: var(--primary);
}

.nav-tabs .nav-link.active {
    background-color: transparent;
    border-bottom-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
}

.progress {
    background-color: #e0e0e0;
    border-radius: 4px;
    height: 0.5rem;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.tooltip-inner {
    background-color: var(--primary);
}

.bs-tooltip-auto[data-popper-placement^="top"]>.tooltip-arrow::before,
.bs-tooltip-top>.tooltip-arrow::before {
    border-top-color: var(--primary);
}

.popover {
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popover-header {
    background-color: var(--primary);
    color: white;
    border: none;
    font-weight: 600;
}

.border-primary {
    border-color: var(--primary) !important;
}

.text-muted {
    color: #666 !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.container-fluid {
    max-width: 100%;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

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

hr {
    border-color: #e0e0e0;
    opacity: 0.5;
}

.rounded {
    border-radius: 8px;
}

.rounded-lg {
    border-radius: 12px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #222;
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
}

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

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(45, 151, 211, 0.1);
    transition: left 0.3s ease;
    z-index: 1;
}

.product-card:hover::before {
    left: 0;
}

.pricing-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

.testimonial {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 29px;
    top: 0;
    height: 100%;
    width: 2px;
    background: var(--primary);
}

.timeline-item {
    margin-bottom: 50px;
    position: relative;
    padding-left: 80px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: white;
    border: 4px solid var(--primary);
}

.feature-box {
    padding: 2rem;
    border-radius: 8px;
    background: #f8f9fa;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-box:hover {
    background: white;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.feature-box i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.team-member {
    text-align: center;
    transition: all 0.3s ease;
}

.team-member img {
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.team-member:hover img {
    transform: scale(1.05);
}

.team-member h5 {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.team-member p {
    color: var(--primary);
    font-weight: 500;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item img {
    transition: all 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 151, 211, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 2.5rem;
}

.search-box {
    position: relative;
}

.search-box input {
    padding-left: 40px;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 0;
}

.badge-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
}

/* .loading spin animation removed */

/* Logo adjustment for tablet and mobile */
@media (max-width: 991px) {
    .navbar-brand img {
        margin-top: -24px;
    }

    .navbar-toggler {
        margin-top: -24px;
    }

    /* Mobile Menu Styling */
    .navbar-collapse {
        background-color: #ffffff;
        text-align: center;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        margin-top: 10px;
        position: relative;
    }

    .navbar-collapse .btn-close {
        z-index: 1050;
        /* Ensure it's on top */
        opacity: 1;
        filter: none !important;
        /* Prevent color inversion in dark mode */
        background-color: transparent;
        /* Ensure no background color interference */
    }

    .navbar-collapse .nav-link {
        color: #333 !important;
        padding: 10px !important;
    }

    .navbar-collapse .nav-link:hover,
    .navbar-collapse .nav-link.active {
        color: var(--primary) !important;
        background-color: #f8f9fa;
        border-radius: 5px;
    }

    .navbar-nav.ms-auto {
        justify-content: center;
        margin-top: 15px;
        flex-direction: row;
        gap: 10px;
    }
}

/* Price Request Modal Enhancements - Premium Version */
#priceRequestModal .modal-content {
    border-radius: 24px;
    background: #ffffff;
    overflow: hidden;
}

#priceRequestModal .modal-header {
    padding: 2rem;
    border: none;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    /* More vibrant corporate gradient or stick to brand primary */
    background: linear-gradient(135deg, var(--primary) 0%, #166ba1 100%);
    color: white;
}

.modal-icon {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#priceRequestModal:hover .modal-icon {
    transform: rotate(10deg);
}

.section-card {
    background: #ffffff;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

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

.section-header {
    border-bottom: none;
    margin-bottom: 2rem !important;
    position: relative;
    padding-bottom: 10px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-header h6 {
    font-size: 1.05rem;
    color: #2d3748;
    font-weight: 700;
}

/* Price Request Modal Refinements */
#priceRequestModal .modal-content {
    border-radius: 24px;
    background: #ffffff;
}

#priceRequestModal .modal-header {
    background: linear-gradient(135deg, #1A5F8A 0%, #2D97D3 100%);
    padding: 1.25rem 2rem;
    border-bottom: none;
}

#priceRequestModal .modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.section-card {
    background: #fcfcfc;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    transition: all 0.3s ease;
}

.section-card:hover {
    border-color: rgba(45, 151, 211, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.section-header h6 {
    color: #2d3748;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
}

.input-group {
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1.2px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
}

.input-group:focus-within {
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(45, 151, 211, 0.1);
}

.input-group-text {
    background: #f8fafc;
    border: none;
    color: #64748b;
    padding: 0 1rem;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text {
    color: var(--primary);
    background: #ecf3f9;
}

.form-control-lg {
    border: none !important;
    font-size: 0.88rem;
    padding: 0.65rem 1rem;
    background: transparent !important;
    box-shadow: none !important;
    color: #334155 !important;
    font-weight: 500;
}

.form-control-lg::placeholder {
    color: #94a3b8;
    font-weight: 400;
    transition: all 0.3s ease;
}

.input-group:focus-within .form-control-lg::placeholder {
    opacity: 0.6;
    transform: translateX(3px);
}

/* Custom Scrollbar for Modal Body */
#priceRequestModal .modal-body::-webkit-scrollbar {
    width: 5px;
}


#priceRequestModal .modal-body::-webkit-scrollbar-track {
    background: #f7fafc;
}

#priceRequestModal .modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 10px;
}

#priceRequestModal .modal-body::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* Logo Animation Styles */
/* Logo Animation Styles Removed */
/* Logo Animation Styles */
.logo-animation {
    animation: logoPulse 3s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.logo-animation:hover {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}

@keyframes logoPulse {
    0% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    }

    25% {
        transform: scale(1.05) rotate(2deg);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
    }

    50% {
        transform: scale(1.1) rotate(0deg);
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.6));
    }

    75% {
        transform: scale(1.05) rotate(-2deg);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.4));
    }

    100% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
    }
}

.modal-footer {
    background: #fcfcfc;
    padding: 1.25rem 2rem;
    /* Slender footer */
}

/* Global Premium Slender Button */
.btn-premium-slender {
    padding: 0.45rem 1rem;
    /* Reduced even further for a truly slender look */
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    /* Slender font size */
    letter-spacing: 0.2px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* Extra Compact Variant for Product Cards */
.price-btn-small {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.78rem !important;
    border-radius: 8px !important;
}

.price-btn-small i {
    font-size: 0.85rem !important;
}

.btn-premium-slender i {
    font-size: 0.95rem !important;
    /* Specific icon size to prevent enlargement */
    transition: all 0.3s ease;
}

.btn-premium-slender.btn-primary {
    background: var(--primary);
    border: none;
    color: white;
    box-shadow: 0 4px 10px 0 rgba(45, 151, 211, 0.2);
}

.btn-premium-slender.btn-primary:hover {
    background: #166ba1;
}

.btn-premium-slender:hover {
    box-shadow: 0 6px 15px rgba(45, 151, 211, 0.25);
    background: rgba(45, 151, 211, 0.08);
    /* Added subtle background shift instead of transform */
}

.btn-premium-slender.btn-outline-primary {
    border: 1.5px solid var(--primary);
    background: transparent;
    color: var(--primary);
}

.btn-premium-slender.btn-outline-primary:hover {
    background: rgba(45, 151, 211, 0.05);
}

#submitPriceRequest {
    /* Inherit/Match premium style */
    padding: 0.6rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    background: var(--primary);
    border: none;
    color: white;
    box-shadow: 0 4px 10px 0 rgba(45, 151, 211, 0.2);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

#submitPriceRequest:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(45, 151, 211, 0.25);
    background: #166ba1;
}

/* Responsive specific fixes */
@media (max-width: 991px) {
    .btn-premium-slender {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    #priceRequestModal .modal-dialog {
        margin: 0.5rem;
    }

    .section-card {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .modal-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .modal-icon i {
        font-size: 1.25rem;
    }

    .modal-title {
        font-size: 1.1rem;
    }

    .section-header h6 {
        font-size: 1rem;
    }
}


/* Main Footer Styles */
/* Main Footer Styles */
.main-footer {
    background-color: #111111;
    color: #ffffff;
    position: relative;
    padding-top: 80px !important;
    font-size: 0.9rem;
}

.footer-desc {
    color: #a0a0a0;
    line-height: 1.8;
    font-size: 0.95rem;
    max-width: 90%;
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    position: relative;
    padding-bottom: 20px;
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    inset-inline-start: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
    border-radius: 2px;
}

.footer-links {
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 14px;
    transition: all 0.3s ease;
}

.footer-links li a {
    color: #a0a0a0;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
}

.footer-links li a::before {
    content: '\f104';
    /* FontAwesome Left Angle */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-inline-end: 8px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

.footer-links li a:hover {
    color: var(--primary);
    padding-inline-start: 5px;
}

.footer-links li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Contact Info Styles */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    /* Center vertically */
    gap: 1.25rem;
    margin-bottom: 0 !important;
    padding: 10px;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.contact-item .icon-box {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background-color: rgba(45, 151, 211, 0.1);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(45, 151, 211, 0.1);
}

.contact-item:hover .icon-box {
    background-color: var(--primary);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(45, 151, 211, 0.3);
}

.contact-item .text-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-item .text-box span {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.contact-item .text-box strong {
    color: #e0e0e0;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-item:hover .text-box strong {
    color: #fff;
}

/* Social Links Styles */
.social-link {
    width: 38px;
    height: 38px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #b0b0b0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.social-link:hover {
    transform: translateY(-5px);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

.social-link.facebook:hover {
    background-color: #3b5998;
}

.social-link.twitter:hover {
    background-color: #1da1f2;
}

.social-link.linkedin:hover {
    background-color: #0077b5;
}

.social-link.instagram:hover {
    background-color: #e1306c;
}

.social-link.youtube:hover {
    background-color: #ff0000;
}

/* Footer Bottom Styles */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-top: 40px;
    padding-top: 30px;
    padding-bottom: 30px;
}

.copyright {
    color: #888;
    font-size: 0.85rem;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .main-footer {
        padding-top: 60px !important;
    }

    .ps-lg-5 {
        padding-inline-start: 12px !important;
    }

    .footer-desc {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .main-footer {
        text-align: center;
        /* Center align on mobile for elegance */
    }

    .footer-title {
        margin-top: 30px;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
    }

    .footer-desc {
        margin: 0 auto 20px auto;
    }

    .social-links {
        justify-content: center;
    }

    /* Re-align contact items to center on mobile */
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 15px;
        background: rgba(255, 255, 255, 0.02);
    }

    .contact-item .text-box {
        align-items: center;
    }

    /* Restore list alignment for links if preferred, or keep centered */
    .footer-links li a {
        justify-content: center;
    }

    .footer-links li a::before {
        display: none;
        /* Hide arrow on mobile center layout */
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-bottom .text-md-end {
        text-align: center !important;
        margin-top: 15px;
    }
}

/* Quote Button in Nav */
.quote-btn-nav {
    font-weight: 600;
    transition: all 0.3s ease;
    border: none !important;
    font-family: 'Cairo', sans-serif;
    color: white !important;
}

.quote-btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(32, 149, 210, 0.4) !important;
    color: white !important;
}

@media (max-width: 991px) {
    .quote-btn-nav {
        width: 100%;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* =========================================
   Universal Product Card & Button Styles
   (Fixed for Homepage Dynamic Sections)
   ========================================= */

.price-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-card .card-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

/* Modal Professional Styles */
#productDetailsModal .modal-content {
    border-radius: 20px;
    overflow: hidden;
}

#detailProductNameBody {
    font-size: 1.25rem;
    color: #333;
}

#detailProductDesc {
    font-size: 0.85rem;
    line-height: 1.7;
    color: #666;
}

/* Info Box Mini (Pill Buttons) */
.info-box-mini {
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 50px;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.info-box-mini:hover {
    background: #fff;
    border-color: #2D97D3;
    /* var(--primary) */
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.info-box-mini i {
    font-size: 1.1rem;
    margin-bottom: 0;
}

.info-box-mini p {
    font-size: 0.8rem;
    margin: 0;
    font-weight: 700;
    white-space: nowrap;
}

/* ===== Responsive Design: Tablet ===== */
@media (max-width: 991px) {
    .product-card {
        margin-bottom: 20px;
    }

    .product-img-container {
        height: 200px;
    }

    .product-card .card-body {
        padding: 1.25rem !important;
    }

    .price-btn-small {
        font-size: 0.85rem;
        padding: 8px 12px !important;
    }
}

/* ===== Responsive Design: Mobile ===== */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 15px;
    }

    .product-img-container {
        height: 180px;
    }

    .product-card .card-body {
        padding: 1rem !important;
    }

    .product-card .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .product-card .card-text {
        font-size: 0.85rem;
        height: auto !important;
        margin-bottom: 1rem !important;
    }

    /* Improved Mobile Buttons */
    .price-btn-small {
        font-size: 0.8rem;
        padding: 10px 8px !important;
        gap: 0.3rem;
    }
}

/* ===== Responsive Design: Small Mobile ===== */
@media (max-width: 576px) {
    .product-img-container {
        height: 160px;
    }

    .product-card .card-body {
        padding: 0.875rem !important;
    }

    .price-btn-small {
        font-size: 0.75rem;
        padding: 8px 6px !important;
    }

    .price-btn-small i {
        font-size: 1rem;
        margin: 0;
    }

    /* Stack buttons vertically on very small screens if needed */
    .product-card .d-flex.gap-2 {
        flex-direction: column;
        gap: 0.5rem !important;
    }

    .price-btn-small span {
        display: inline;
        /* Keep text visible */
    }
}

.price-btn-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45, 151, 211, 0.3);
}

.btn-premium-slender {
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    border-width: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   Base Product Card Styles (Essential for Layout)
   ========================================= */

.product-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #fff;
    position: relative;
    height: 100%;
    /* Ensure equal height cards */
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.product-img-container {
    height: 180px;
    /* Base fixed height prevents huge images */
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100%;
}

.product-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.5s ease;
}

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

/* Fix for button clickability - Critical for Dynamic Sections */
.product-card .card-body {
    position: relative;
    z-index: 2;
    background-color: #fff;
    /* Ensure it covers anything behind it */
}

/* Developer Signature Animation */
.developer-signature {
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    animation: signaturePulse 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.developer-signature:hover {
    color: var(--primary) !important;
    text-shadow: 0 0 10px rgba(45, 151, 211, 0.5);
    animation-play-state: paused;
}

@keyframes signaturePulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
        color: var(--primary);
        text-shadow: 0 0 5px rgba(45, 151, 211, 0.3);
    }

    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}