/* Global Variables */
:root {
    --primary-red: #16a085;
    --primary-dark: #34495e;
    --accent-gold: #ffd700;
    --dark-bg: #1a1a1a;
    --darker-bg: #121212;
    --light-bg: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --text-main: #333333;
    --text-muted: #666666;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition-base: all 0.3s ease;
}

/* Typography & Reset */
body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    color: #1a1a1a;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
}

/* Custom Buttons */
.btn-red {
    background-color: var(--primary-red);
    color: #fff;
    border: 2px solid var(--primary-red);
    transition: var(--transition-base);
}

.btn-red:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(22, 160, 133, 0.2);
}

.btn-outline-red {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
    transition: var(--transition-base);
}

.btn-outline-red:hover {
    background-color: var(--primary-red);
    color: #fff;
    transform: translateY(-2px);
}

/* Navigation Overrides */
.navbar .nav-link {
    transition: var(--transition-base);
    font-size: 1rem;
    padding: 0.5rem 1rem !important;
}

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

/* Section Title Utility */
.section-title .badge {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 16px;
}

/* Service Cards */
.hover-lift {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Global Transition Classes */
.transition-all {
    transition: var(--transition-base);
}

/* Footer Link Hover */
.footer a.hover-red {
    transition: var(--transition-base);
}

.footer a.hover-red:hover {
    color: var(--primary-red) !important;
    padding-right: 5px;
}

/* Responsive adjustments for RTL */
[dir="rtl"] .ms-lg-4 {
    margin-right: 1.5rem !important;
    margin-left: 0 !important;
}

[dir="rtl"] .me-3 {
    margin-left: 1rem !important;
    margin-right: 0 !important;
}

/* Custom Gradients */
.bg-red-gradient {
    background: var(--primary-color) !important;
}

/* Blur effects */
.backdrop-blur {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Text and Spacing utilities */
.leading-relaxed {
    line-height: 1.8;
}

.w-fit {
    width: fit-content;
}

.category-box {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.category-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.category-box i {
    transition: transform 0.4s ease;
}

.category-box:hover i {
    transform: scale(1.1) rotate(5deg);
}

.hover-zoom {
    overflow: hidden;
}

.hover-zoom img {
    transition: transform 0.6s ease;
}

.hover-zoom:hover img {
    transform: scale(1.08);
}

.object-fit-cover {
    object-fit: cover;
}

.bg-red-light {
    background-color: #34495e !important;
}