:root {
    --primary: #004A77;
    --primary-dark: #003a5e;
    --primary-50: rgba(0, 74, 119, 0.06);
    --primary-10: rgba(0, 74, 119, 0.10);
}

/* Generic link/button hover */
a:hover,
button:hover {
    color: var(--primary);
}

/* Replace Tailwind "purple" utility usages on your pages */
.text-purple-600 {
    color: var(--primary) !important;
}

.text-purple-100 {
    color: rgba(0, 74, 119, 0.08) !important;
}

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

/* Common Tailwind-like state classes (escape colons) */
.hover\:bg-purple-700:hover {
    background-color: var(--primary-dark) !important;
}

.hover\:text-purple-600:hover {
    color: var(--primary) !important;
}

.hover\:text-purple-400:hover {
    color: var(--primary) !important;
}

/* Focus ring replacement for inputs that use focus:ring-purple-600 */
.focus\:ring-purple-600:focus,
.focus\:ring-purple-600:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 74, 119, 0.14) !important;
}

/* Buttons and borders that referenced purple shades */
.border-purple-600 {
    border-color: var(--primary) !important;
}

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

/* Small helpers used in your templates */
.text-theme-primary {
    color: var(--primary) !important;
}

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

.hover\:bg-theme-primary:hover {
    background-color: var(--primary-dark) !important;
}

/* Footer/social icon hover override */
.footer a:hover,
.social a:hover {
    color: var(--primary) !important;
}

/* Ensure inputs and selects show primary on focus if using Tailwind classes */
input:focus,
textarea:focus,
select:focus {
    box-shadow: 0 0 0 4px rgba(0, 74, 119, 0.08);
}

/* Optional small tweak: replace any inline gradient references if you use custom gradients */
.bg-gradient-to-br {
    /* keep existing gradient but prefer primary */
    background-image: linear-gradient(145deg, var(--primary) 0%, #0076A3 60%, #004A77 100%) !important;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    padding-top: 5rem;
}

.text-purple-600 {
    --tw-text-opacity: 1;
    color: #004A77 !important;
}

.text-gray-800 {
    color: #004A77 !important;
}

.gradient-bg {
    background: linear-gradient(135deg, #004A77 0%, #0076A3 50%, #00A0C6 100%);
}

.bg-gradient-to-br {
    background-image: linear-gradient(145deg, #00A0C6 0%, #0076A3 60%, #004A77 100%) !important;
}

.bg-purple-600 {
    --tw-bg-opacity: 1;
    background-color: #004A77 !important;
}

.service-card {
    transition: all 0.3s ease;
}

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

.hero-pattern {
    background-position: bottom;
    background: linear-gradient(rgb(0 74 119 / 57%), rgb(0 160 198)), url('../images/sound-systems.jpg') bottom / cover no-repeat;
}

.smooth-scroll {
    scroll-behavior: smooth;
}

#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

#mobile-menu.active {
    max-height: 500px;
}

.services-section {
    position: relative;
    overflow: hidden;
    background-color: #f9fafb;
    /* bg-gray-50 */
}

/* Create a transparent pattern background layer */
.services-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url('../images/just-circles.svg');
    background-repeat: repeat;
    background-size: 200px;
    opacity: 0.05;
    /* control background transparency */
    z-index: 0;
    /* behind content */
}

/* Keep the content above the background */
.services-section>* {
    position: relative;
    z-index: 1;
}

.slider {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 80%;
    overflow: hidden;
    background: rgb(255, 255, 255);
    border-radius: 16px;
    backdrop-filter: blur(7.4px);
    -webkit-backdrop-filter: blur(7.4px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.slider-items {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 40px;
    animation: scrolling 30s linear infinite;
    width: max-content;
}

.partner-section {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.contact-us-bg {
    background-color: #3ea3ba57;
    padding: 2.5rem;
    border-radius: 20px;
}

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

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

.slider-items img {
    width: 150px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

/* ...existing code... */

/* small RTL helpers */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] .nav-links {
    flex-direction: row-reverse;
}

[dir="rtl"] .text-left {
    text-align: right !important;
}

[dir="rtl"] .md\:flex {
    direction: rtl;
}

/* fallback for some layouts */
.is-rtl .md\:flex {
    flex-direction: row-reverse;
}
/* Initial Hidden State */
.aos-element {
    opacity: 0;
    transform: translateY(20px);
    /* Essential for smoothness! */
    transition: opacity 1s ease-out, transform 1s ease-out; 
}

/* Final Visible State (Added by JS) */
.aos-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}