/********** Delmon HSP Integrated CSS **********/

/* ===============================================
   1. ROOT VARIABLES & BASE STYLES
   =============================================== */
   
:root {
    --primary: #35348d;
    --secondary: #eb2d2e;
    --light: #FFFFFF;
    --dark: #35348d;
}

* {
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    font-family: sans-serif;
}

body {
    margin: 0;
    background-color: var(--light);
    color: var(--dark);
    min-height: 100%;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 20px;
}

/* Enhanced white color focus */
body {
    background-color: var(--light);
    color: var(--dark);
}

/* ===============================================
   2. TYPOGRAPHY
   =============================================== */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 10px;
    font-weight: bold;
    color: var(--primary) !important;
}

h1 {
    margin-top: 20px;
    font-size: 38px;
    line-height: 44px;
}

h2 {
    margin-top: 20px;
    font-size: 32px;
    line-height: 36px;
}

h3 {
    margin-top: 20px;
    font-size: 24px;
    line-height: 30px;
}

h4 {
    margin-top: 10px;
    font-size: 18px;
    line-height: 24px;
}

h5 {
    margin-top: 10px;
    font-size: 14px;
    line-height: 20px;
}

h6 {
    margin-top: 10px;
    font-size: 12px;
    line-height: 18px;
}

p {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Update text colors from black to appropriate colors */
.text-dark {
    color: var(--primary) !important;
}

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

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

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

.bg-secondary {
    background: var(--secondary) !important;
}

/* ===============================================
   3. NAVBAR STYLES
   =============================================== */

/* Enhanced navbar styles */
.navbar {
    background-color: var(--light) !important;
    box-shadow: 0 2px 10px rgba(53, 52, 141, 0.1);
    border-top: 3px solid var(--secondary) !important;
}

/* Delmon Logo Styles */
.navbar-brand img {
    border-radius: 0;
    transition: all 0.3s ease;
    box-shadow: none;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand {
    background: var(--light) !important;
    min-height: 75px;
    display: flex !important;
    align-items: center !important;
    border-radius: 0 8px 8px 0;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.navbar-brand img {
    border-radius: 4px;
    transition: all 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.navbar-brand h2 {
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* Enhanced navigation links */
.navbar-light .navbar-nav .nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    margin-right: 30px;
    padding: 25px 0;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--secondary) !important;
    transform: translateY(-2px);
}

/* Phone number styling */
.navbar .phone-number {
    color: var(--dark);
    font-weight: 700;
    font-size: 16px;
}

.navbar .phone-number i {
    color: var(--primary);
    margin-right: 8px;
}

/* Dropdown styles */
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

/* ===============================================
   4. TRANSPARENT NAVBAR (Hero Section)
   =============================================== */

/* Hero Section with Transparent Navbar */
.hero-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

/* Transparent Navbar */
.navbar-transparent {
    background: rgba(255, 255, 255, 0.18) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-transparent.scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(53, 52, 141, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.navbar-transparent .navbar-brand {
    background: transparent !important;
    border: none;
}

.navbar-transparent .navbar-brand h2 {
    color: white !important;
    transition: all 0.3s ease;
}

/* Transparent logo inside transparent header */
.navbar-transparent .navbar-brand img {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.navbar-transparent.scrolled .navbar-brand h2 {
    color: var(--primary) !important;
}

.navbar-transparent .navbar-nav .nav-link {
    color: white !important;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    padding: 10px 20px !important;
    border-radius: 25px;
    margin: 0 5px;
}

.navbar-transparent .navbar-nav .nav-link:hover,
.navbar-transparent .navbar-nav .nav-link.active {
    color: white !important;
    background: rgba(235, 45, 46, 0.8);
    transform: translateY(-2px);
}

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

.navbar-transparent.scrolled .navbar-nav .nav-link:hover,
.navbar-transparent.scrolled .navbar-nav .nav-link.active {
    color: white !important;
    background: var(--secondary);
}

.navbar-transparent .navbar-toggler {
    border: 2px solid var(--secondary);
    color: var(--secondary);
    border-radius: 10px;
    padding: 4px 8px;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(235, 45, 46, 0.15);
}

.navbar-transparent.scrolled .navbar-toggler {
    color: var(--secondary);
    border-color: var(--secondary);
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(235, 45, 46, 0.15);
}

/* Custom hamburger (three red lines) inside navbar toggler */
.navbar-toggler .hamburger {
    width: 30px;
    height: 22px;
    position: relative;
    display: inline-block;
}

.navbar-toggler .hamburger::before,
.navbar-toggler .hamburger::after,
.navbar-toggler .hamburger span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--secondary);
    border-radius: 2px;
}

.navbar-toggler .hamburger::before { top: 0; }
.navbar-toggler .hamburger span { top: 8.5px; display: block; }
.navbar-toggler .hamburger::after { top: 17px; }

/* Hide default bootstrap icon if present */
.navbar-toggler .navbar-toggler-icon { display: none !important; }

/* ===============================================
   5. BUTTON STYLES
   =============================================== */

.btn {
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: var(--light);
}

/* Enhanced button styles */
.btn-primary {
    background: var(--primary) !important;
    border: none !important;
    color: var(--light) !important;
}

.btn-primary:hover {
    background: var(--secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(53, 52, 141, 0.3);
}

.btn-secondary {
    background: var(--secondary) !important;
    border: none !important;
    color: var(--light) !important;
}

.btn-secondary:hover {
    background: var(--primary) !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(53, 52, 141, 0.3);
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/* ===============================================
   6. CAROUSEL STYLES
   =============================================== */

/* Enhanced Carousel */
.header-carousel {
    height: 100vh !important;
}

.owl-carousel-item {
    height: 100vh !important;
    position: relative;
}

.owl-carousel-item img {
    width: 100%;
    height: 100vh !important;
    object-fit: cover;
    object-position: center;
}

/* Carousel Content */
.owl-carousel-item .position-absolute {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.2) 100%);
    padding-top: 100px;
}

.owl-carousel-item h1 {
    font-size: 4rem;
    font-weight: 900;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    color: var(--secondary) !important;
}

.owl-carousel-item p {
    font-size: 1.3rem;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 800px;
}

/* Carousel Navigation */
.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    z-index: 10;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 50%;
    margin: 10px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 22px;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: rgba(235, 45, 46, 0.8) !important;
    border-color: rgba(235, 45, 46, 0.8) !important;
    transform: scale(1.1);
}

.header-carousel .owl-nav .owl-prev i,
.header-carousel .owl-nav .owl-next i {
    color: white;
    font-size: 24px;
}

/* ===============================================
   7. CARD & SERVICE STYLES
   =============================================== */

/* Enhanced card styles */
.service-item,
.price-item,
.team-item {
    background: var(--light);
    border: 1px solid rgba(35, 43, 59, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
    border-radius: 15px;
    overflow: hidden;
}

.service-item:hover,
.price-item:hover,
.team-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(53, 52, 141, 0.15);
}

.service-item img,
.team-item img {
    transition: .5s;
}

.service-item:hover img,
.team-item:hover img {
    transform: scale(1.1);
}

/* Service items and other sections */
.service-item h5,
.team-item h5,
.fact-item h5 {
    color: var(--primary) !important;
    font-weight: 700;
}

.service-item p {
    color: #666;
    line-height: 1.6;
}

.service-item .text-decoration-none {
    color: var(--primary) !important;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-item .text-decoration-none:hover {
    color: var(--secondary) !important;
    transform: translateX(5px);
}

.service-item .border-light {
    border-color: #f8f9fa !important;
}

/* ===============================================
   8. ABOUT SECTION STYLES
   =============================================== */

/* Enhanced About Section Styles */
.about {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.about-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(53, 52, 141, 0.9));
    padding: 30px;
    border-radius: 0 0 15px 15px;
}

.about-stats {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    font-weight: 500;
}

.feature-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.feature-icon i {
    color: white !important;
}

.about-text h6 {
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.about-text h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    color: var(--primary) !important;
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-text .btn {
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.about-text .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(53, 52, 141, 0.3);
}

/* Companies, Partners, Contact sections */
#companies h1,
#companies h5 {
    color: var(--primary) !important;
}

#partners h1,
#partners h5 {
    color: var(--primary) !important;
}

#contact h1,
#contact h5 {
    color: var(--primary) !important;
}

/* ===============================================
   9. DROPDOWN STYLES
   =============================================== */

/* Enhanced Dropdown Styles */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 0;
    margin-top: 10px;
    min-width: 200px;
}

.dropdown-item {
    color: var(--primary) !important;
    font-weight: 500;
    padding: 12px 20px;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 2px 10px;
}

.dropdown-item:hover {
    background: var(--secondary) !important;
    color: white !important;
    transform: translateX(5px);
}

.dropdown-toggle::after {
    color: var(--primary);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* ===============================================
   10. FORM STYLES
   =============================================== */

/* Enhanced form elements */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(53, 52, 141, 0.25);
}

.w-form {
    margin: 0 0 15px;
}

.w-form-done {
    text-align: center;
    background-color: #ddd;
    padding: 20px;
    display: none;
}

.w-form-fail {
    background-color: #ffdede;
    margin-top: 10px;
    padding: 10px;
    display: none;
}

label {
    margin-bottom: 5px;
    font-weight: bold;
    display: block;
}

.w-input, .w-select {
    color: #333;
    vertical-align: middle;
    background-color: #fff;
    border: 1px solid #ccc;
    width: 100%;
    height: 38px;
    margin-bottom: 10px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.42857;
    display: block;
}

.w-input::placeholder, .w-select::placeholder {
    color: #999;
}

.w-input:focus, .w-select:focus {
    border-color: #3898ec;
    outline: 0;
}

/* ===============================================
   11. FOOTER STYLES
   =============================================== */

/* Enhanced footer */
.footer {
    background: linear-gradient(rgba(53, 52, 141, 0.9), rgba(53, 52, 141, 0.9)), url(../img/map.png) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    background: var(--light);
    color: var(--primary);
    border: 1px solid var(--light);
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-2px);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: var(--light);
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 14px 0;
    font-size: 14px;
    border-top: none !important;
}

.footer .copyright a {
    color: var(--light);
}

/* Copyright text color */
.copyright .text-primary {
    color: var(--primary) !important;
}

/* ===============================================
   12. LOADING SCREEN STYLES
   =============================================== */

/* Loading Screen Styles */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#loading-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

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

.loading-logo {
    margin-bottom: 30px;
}

.logo-image {
    width: 150px;
    height: 110px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(53, 52, 141, 0.18);
    animation: logoPulse 2.4s ease-in-out infinite;
    border: 2px solid rgba(53, 52, 141, 0.1);
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 5px 20px rgba(53, 52, 141, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(53, 52, 141, 0.3);
    }
}

.loading-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: #35348d;
    animation: textFadeIn 1s ease-out 0.5s both;
}

.loading-text p {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--secondary);
    margin-bottom: 40px;
    animation: textFadeIn 1s ease-out 1s both;
}

@keyframes textFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-spinner {
    margin-top: 30px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(53, 52, 141, 0.2);
    border-top: 4px solid #35348d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Hide main content during loading */
body.loading {
    overflow: hidden;
}

body.loading .container-fluid,
body.loading .container {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

body:not(.loading) .container-fluid,
body:not(.loading) .container {
    opacity: 1;
}

/* ===============================================
   13. UTILITY CLASSES
   =============================================== */

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

.w-block {
    display: block;
}

.w-inline-block {
    max-width: 100%;
    display: inline-block;
}

.w-hidden {
    display: none;
}

/* Delmon specific styles */
.delmon-primary {
    color: var(--primary) !important;
}

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

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

.delmon-bg-secondary {
    background-color: var(--secondary) !important;
}

/* ===============================================
   14. PRODUCTS GRID STYLES
   =============================================== */

/* منتجاتنا: شبكة في الديسكتوب، عمودي في الايفون */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.product-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    background: white;
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(53, 52, 141, 0) 0%,
        rgba(53, 52, 141, 0.8) 70%,
        rgba(53, 52, 141, 0.95) 100%
    );
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

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

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

.overlay h3 {
    color: white;
    margin: 0;
}

/* ===============================================
   15. NAVIGATION MENU STYLES  
   =============================================== */

/* منيو بار جديد أعلى الصفحة (يشبه قوائم الديسكتوب) */
.new-navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 3px solid var(--secondary);
}

.new-navbar-list {
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.new-navbar-link {
    padding: 12px 24px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 25px;
    margin: 0 5px;
}

.new-navbar-link:hover,
.new-navbar-link.active {
    background: var(--secondary);
    color: white;
}

/* الديفولت (شاشات كبيرة) */
.nav-menu-wrapper {
    display: flex;
    align-items: center;
}

.nav-menu-two .nav-link {
    margin: 0 15px;
}

/* ===============================================
   16. RESPONSIVE DESIGN
   =============================================== */

/* Mobile menu styles */
@media (max-width: 991.98px) {
    .navbar-transparent {
        padding: 8px 0;
    }
    
    .navbar-transparent .navbar-brand h2 {
        color: var(--primary) !important;
        font-size: 1.25rem;
    }
    
    .navbar-transparent .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-radius: 12px;
        padding: 10px 12px;
        margin-top: 10px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    }
    
    .navbar-transparent .navbar-nav .nav-link {
        color: var(--primary) !important;
        margin: 6px 0;
        padding: 10px 12px !important;
        border-radius: 8px;
    }
    
    .navbar-transparent .navbar-nav .nav-link:hover,
    .navbar-transparent .navbar-nav .nav-link.active {
        color: #fff !important;
        background: var(--secondary);
        transform: none;
    }

    .navbar-light .navbar-nav .nav-link {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

/* تابلت (أقل من 1024px) */
@media (max-width: 1024px) {
    .nav-menu-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-menu-two .nav-link {
        margin: 0 10px;
        font-size: 13px;
    }
}

/* موبايل (أقل من 768px) */
@media (max-width: 767px) {
    .new-navbar-list {
        flex-direction: column;
        gap: 5px;
    }
    
    .new-navbar-link {
        padding: 10px 20px;
        margin: 2px 0;
        text-align: center;
    }

    .hero-section {
        height: 80vh;
    }
    
    .header-carousel,
    .owl-carousel-item,
    .owl-carousel-item img {
        height: 80vh !important;
    }
    
    .owl-carousel-item h1 {
        font-size: 2.5rem;
    }
    
    .owl-carousel-item p {
        font-size: 1rem;
    }
    
    .navbar-transparent {
        padding: 10px 0;
    }
    
    .navbar-transparent .navbar-brand h2 {
        font-size: 1.5rem;
    }

    /* Responsive design for loading screen */
    .logo-image {
        width: 135px;
        height: 100px;
        border: 2px solid rgba(53, 52, 141, 0.1);
    }
    
    .loading-text h2 {
        font-size: 2rem;
    }
    
    .loading-text p {
        font-size: 1rem;
    }

    /* About section responsive */
    .about {
        margin: 10px;
    }
    
    .about-text h1 {
        font-size: 2rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .feature-card {
        margin-bottom: 20px;
    }

    /* Enhanced carousel text styling */
    .header-carousel .owl-carousel-item {
        min-height: 70vh;
    }
    
    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

@media (max-width: 500px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 15px 10px;
    }
    
    .product-card img {
        height: 200px;
    }
    
    .overlay {
        padding: 15px;
    }
    
    .overlay h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 479px) {
    .navbar-light .navbar-nav .nav-link {
        padding: 8px 0;
        font-size: 13px;
    }
}

/* Large screens optimization */
@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        top: -6px;
        left: 50%;
        background: var(--light);
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }

    .container.about {
        max-width: 100% !important;
    }

    .about-text {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }

    .container.feature {
        max-width: 100% !important;
    }

    .feature-text {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }

    .container.contact-page {
        max-width: 100% !important;
    }

    .contact-page .contact-form {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }

    .feature-text {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }

    .contact-page .contact-form {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }

    .feature-text {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }

    .contact-page .contact-form {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}

/* ===============================================
   17. ANIMATIONS & KEYFRAMES
   =============================================== */

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

/* Spinner */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

/* Testimonial Carousel */
.testimonial-carousel .owl-item .testimonial-item {
    position: relative;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    animation: pulse 1s ease-out .5s;
}

.testimonial-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border: 5px solid var(--light);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--light);
    border-color: var(--primary);
}

/* ===============================================
   18. PARTNERS CAROUSEL STYLES
   =============================================== */

/* Partners Carousel Styles */
.partners-carousel {
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.partner-item {
    flex: 0 0 200px;
    margin: 0 15px;
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.partner-logo {
    width: 100%;
    height: 120px;
    object-fit: contain;
    background: white;
    padding: 15px;
    transition: all 0.3s ease;
}

.partner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(53, 52, 141, 0.9));
    color: white;
    padding: 15px;
    transform: translateY(100%);
    transition: all 0.3s ease;
}

.partner-item:hover .partner-overlay {
    transform: translateY(0);
}

.partner-overlay h5 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}

/* ===============================================
   19. PAGE HEADER STYLES
   =============================================== */

/* Enhanced page headers */
.page-header {
    background: linear-gradient(rgba(53, 52, 141, 0.8), rgba(53, 52, 141, 0.8)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}

/* ===============================================
   20. FINAL OPTIMIZATIONS
   =============================================== */

img {
    vertical-align: middle;
    max-width: 100%;
    display: inline-block;
    border: 0;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

.navbar-wrapper {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Final touch for consistency */
.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--light);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}