@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #1e40af;
    --primary-light: #3151c5;
    --primary-dark: #15307f;
    --secondary: #0ea5e9;
    --secondary-light: #38bdf8;
    --secondary-dark: #0284c7;
    --accent: #f59e0b;
    --accent-light: #fbbf24;
    --dark: #0f172a;
    --light: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --transition-fast: 0.3s;
    --transition-medium: 0.5s;
    --transition-slow: 0.8s;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Alexandria', sans-serif;
    color: var(--gray-800);
    background-color: var(--gray-100);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-200);
}

::-webkit-scrollbar-thumb {
    background: var(--secondary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Header Styles */
header {
    transition: all var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow: var(--shadow);
}

.logo-text {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: -0.5px;
}

nav a {
    position: relative;
    font-weight: 500;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    transition: width var(--transition-fast);
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(15, 23, 42, 0.85)), url('https://images.unsplash.com/photo-1581578731548-c64695cc6952?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1770&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(14, 165, 233, 0.2), transparent 60%);
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--gray-100), transparent);
}

.hero-section h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-section p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1.2s ease-out;
}

.hero-section .flex.flex-wrap.gap-4 {
    animation: fadeInUp 1.4s ease-out;
}

.hero-section .mt-12 {
    animation: fadeInUp 1.6s ease-out;
}

/* Services Section */
.service-card {
    transition: all var(--transition-medium);
    border: 1px solid transparent;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-light);
    box-shadow: var(--shadow-lg);
}

.service-card .text-4xl {
    transition: all var(--transition-fast);
}

.service-card:hover .text-4xl {
    transform: scale(1.2);
    color: var(--primary);
}

/* Offers Section */
.offers-section {
    background-image: linear-gradient(135deg, rgba(14, 165, 233, 0.95), rgba(30, 64, 175, 0.95)), url('https://images.unsplash.com/photo-1621905251189-08b45d6a269e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1769&q=80');
    background-size: cover;
    background-position: center;
    position: relative;
}

.offers-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.offers-section > div {
    position: relative;
    z-index: 1;
}

.offers-card {
    transition: all var(--transition-medium);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.offers-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    z-index: -1;
    transition: all var(--transition-medium);
}

.offers-card:hover::before {
    transform: scale(1.1);
}

.offers-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.faq-item {
    transition: all var(--transition-fast);
    overflow: hidden;
}

.faq-item:hover {
    border-color: var(--secondary);
    transform: translateX(5px);
}

.faq-item h3 {
    cursor: pointer;
    transition: all var(--transition-fast);
}

.faq-item h3:hover {
    color: var(--primary);
}

.faq-item h3 i {
    transition: transform var(--transition-fast);
}

.faq-item h3.active i {
    transform: rotate(180deg);
}

.faq-item p {
    max-height: 0;
    opacity: 0;
    transition: all var(--transition-medium);
    overflow: hidden;
}

.faq-item p.active {
    max-height: 500px;
    opacity: 1;
    padding-top: 1rem;
}

/* Gallery Section */
.gallery-grid img {
    transition: all var(--transition-medium);
    filter: grayscale(20%);
}

.gallery-grid img:hover {
    transform: scale(1.05);
    filter: grayscale(0%);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

/* Contact Section */
.contact-form input,
.contact-form select,
.contact-form textarea {
    transition: all var(--transition-fast);
    border: 2px solid var(--gray-300);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    outline: none;
}

.contact-form button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all var(--transition-fast);
    z-index: -1;
}

.contact-form button:hover::before {
    left: 100%;
}

/* Social Media Icons */
.social-icon {
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scale(0);
    transition: all var(--transition-fast);
    border-radius: 50%;
}

.social-icon:hover::before {
    transform: scale(1);
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: linear-gradient(to right, var(--dark), var(--gray-800));
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

footer > div {
    position: relative;
    z-index: 1;
}

/* WhatsApp Float Button */
.whatsapp-float {
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    animation: none;
}

/* Back to Top Button */
#back-to-top {
    transition: all var(--transition-fast);
    opacity: 0;
    visibility: hidden;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(22, 163, 74, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    }
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
    }
}

/* RTL Specific Adjustments */
[dir="rtl"] nav a::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .faq-item:hover {
    transform: translateX(-5px);
}

/* Add these classes to your HTML elements */
.service-card {
    @apply bg-gray-50 p-6 rounded-lg shadow-md hover:shadow-lg transition duration-300;
}

.offers-card {
    @apply bg-white bg-opacity-10 backdrop-blur-sm rounded-lg p-6 border border-white border-opacity-20 hover:bg-opacity-20 transition duration-300;
}

.gallery-grid {
    @apply grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-4;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    @apply w-full px-4 py-2 border border-gray-300 rounded-lg focus:outline-none focus:border-secondary;
}

.social-icon {
    @apply w-10 h-10 rounded-full flex items-center justify-center text-white transition duration-300;
}

.whatsapp-float {
    @apply fixed bottom-6 left-6 bg-green-500 text-white rounded-full w-14 h-14 flex items-center justify-center shadow-lg hover:bg-green-600 transition duration-300 z-50;
}

/* Contact Page Styles */
.form-message {
    transition: opacity 0.3s ease;
}

.contact-faq-question:hover {
    background-color: rgba(14, 165, 233, 0.05);
}

.contact-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.contact-faq-answer:not(.hidden) {
    max-height: 500px;
}

/* Form Input Focus Styles */
input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

/* Map Hover Effect */
.bg-gray-200.rounded-xl.overflow-hidden {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bg-gray-200.rounded-xl.overflow-hidden:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Social Media Icons */
.bg-blue-600, .bg-green-500, .bg-pink-600, .bg-blue-400 {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.bg-blue-600:hover, .bg-green-500:hover, .bg-pink-600:hover, .bg-blue-400:hover {
    transform: scale(1.1);
}


/* Mobile menu hover effects */
#mobile-menu a, #mobile-sidebar a {
    display: block;
    position: relative;
    transition: all 0.3s ease;
}

#mobile-menu a:hover, #mobile-sidebar a:hover {
    padding-right: 0.5rem;
    color: var(--color-secondary, #0ea5e9);
}

/* Define CSS variables for colors to match Tailwind config */
:root {
    --color-primary: #1e40af;
    --color-secondary: #0ea5e9;
    --color-dark: #0f172a;
}

/* Smooth transitions for mobile menu */
#mobile-menu, #mobile-sidebar {
    transition: all 0.3s ease-in-out;
}

/* Mobile sidebar right-side animation */
#mobile-sidebar {
    transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

#mobile-sidebar > div {
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    position: relative;
    overflow: hidden;
}

#mobile-sidebar > div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(to right, var(--secondary), var(--primary));
    z-index: 10;
}

#mobile-sidebar > div::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231e40af' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
    z-index: -1;
}

/* Enhanced menu items */
#mobile-sidebar ul {
    padding: 0.5rem;
}

#mobile-sidebar ul li {
    margin: 0.5rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

#mobile-sidebar ul li a {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    font-weight: 500;
    border-radius: 0.375rem;
    position: relative;
    z-index: 1;
}

/* Ripple effect for close button */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    width: 100px;
    height: 100px;
    margin-top: -50px;
    margin-left: -50px;
    animation: ripple 0.6s linear;
    transform: scale(0);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(2.5);
        opacity: 0;
    }
}

/* Click pulse effect */
.click-pulse {
    position: fixed;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
    animation: pulse 0.6s ease-out;
    transform: scale(0);
    pointer-events: none;
    z-index: 9999;
}

@keyframes pulse {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Menu button animation */
#mobile-menu-button {
    transition: transform 0.3s ease;
}

#mobile-menu-button.active {
    transform: rotate(90deg);
}

/* RTL adjustments */
html[dir="rtl"] #mobile-sidebar > div {
    transform: translateX(-100%);
    box-shadow: 5px 0 30px rgba(0, 0, 0, 0.15);
}

html[dir="rtl"] #mobile-sidebar > div::before {
    background: linear-gradient(to left, var(--secondary), var(--primary));
}

html[dir="rtl"] .menu-icon-container {
    margin-left: 0;
    margin-right: 8px;
}

html[dir="rtl"] #mobile-sidebar ul li a:hover {
    transform: translateX(-3px);
    border-right: none;
    border-left-width: 3px;
    border-left-style: solid;
    border-image-source: linear-gradient(to bottom, var(--secondary), var(--primary));
    border-image-slice: 1;
}

/* Header navigation icons styling */
nav a i {
    margin-left: 5px;
    font-size: 0.85em;
    opacity: 0.8;
    transition: all var(--transition-fast);
}

nav a:hover i {
    opacity: 1;
    transform: translateY(-2px);
}

/* RTL specific adjustments for nav icons */
html[dir="rtl"] nav a i {
    margin-left: 0;
    margin-right: 5px;
}

/* Add subtle icon animations */
@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

nav a:hover i.fa-home,
nav a:hover i.fa-tools,
nav a:hover i.fa-info-circle,
nav a:hover i.fa-star,
nav a:hover i.fa-envelope,
nav a:hover i.fa-shield-alt {
    animation: iconPulse 0.5s ease;
}

/* Shape dividers */
.shape-top {
    line-height: 0;
    transform: rotate(0deg);
}

.shape-top svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* Adding shape-bottom styles */
.shape-bottom {
    line-height: 0;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: rotate(180deg); /* Changed from -180deg to 0deg to point downward */
}

.shape-bottom svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}







/* Custom Shape Dividers for Offers Section */
.offers-section .shape-top {
    line-height: 0;
    transform: rotate(0deg);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.offers-section .shape-top svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 100px;
    filter: drop-shadow(0px 5px 4px transparent);
}

.offers-section .shape-bottom {
    line-height: 0;
    transform: rotate(180deg);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

.offers-section .shape-bottom svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
    filter: drop-shadow(0px -5px 4px transparent);
}

/* Add a gradient overlay to the shapes for better visual effect */
.offers-section .shape-top::after,
.offers-section .shape-bottom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
}