@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800&family=Inter:wght@400;500;700;800&display=swap');

:root {
    --navy-900: #0A0A0A;
    --navy-800: #121212;
    --gold-500: #CDA45E;
    --gold-600: #B89352;
    --gold-700: #8E6E3A;
    --white: #FFFFFF;
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-arabic: 'Tajawal', 'Cairo', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--slate-800);
    background-color: var(--white);
    overflow-x: hidden;
}

/* RTL Support */
[dir="rtl"] {
    font-family: var(--font-arabic) !important;
}

[dir="ltr"] {
    font-family: var(--font-main) !important;
}

[dir="rtl"] p {
    text-align: justify;
    line-height: 1.8;
}

/* Layout Utilities */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

/* Colors */
.bg-navy {
    background-color: var(--navy-900);
}

.bg-navy-light {
    background-color: var(--navy-800);
}

.bg-gold {
    background-color: var(--gold-600);
}

.bg-slate-50 {
    background-color: var(--slate-50);
}

.text-gold {
    color: var(--gold-500);
}

.text-white {
    color: var(--white);
}

.text-slate-300 {
    color: var(--slate-300);
}

.text-slate-400 {
    color: var(--slate-400);
}

.text-slate-600 {
    color: var(--slate-600);
}

/* Typography */
.text-center {
    text-align: center;
}

.font-bold {
    font-weight: 700;
}

.text-4xl {
    font-size: 2.25rem;
}

.text-lg {
    font-size: 1.125rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--gold-600);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--gold-700);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--slate-700);
    color: black;
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: 80px;
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-500);
    text-decoration: none;
}

.nav-links {
    display: none;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        gap: 2rem;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 101;
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--gold-500);
    border-radius: 10px;
    transition: all 0.3s linear;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -8px);
}

/* Mobile Menu Dropdown */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--navy-900);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 998;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-menu .nav-link {
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.8rem 1rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.mobile-menu .nav-link:hover {
    background: rgba(205, 164, 94, 0.08);
    color: var(--gold-500);
    padding-left: 1.5rem;
    border-color: rgba(205, 164, 94, 0.2);
}

.mobile-menu .nav-link.active {
    background: rgba(205, 164, 94, 0.15);
    color: var(--gold-500);
    font-weight: 700;
}

.mobile-menu .nav-link.lang-switch {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    color: var(--gold-500) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu .nav-link.lang-switch::after {
    content: '🌐';
    font-size: 1.1rem;
    opacity: 0.8;
}

.nav-link {
    color: var(--slate-200);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold-500);
}

/* Hero */
.hero {
    padding: 10rem 0 6rem;
    position: relative;
    background-color: white;
    color: var(--white);
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem !important;
    }

    .hero p {
        font-size: 1rem !important;
    }

    .hero-grid {
        gap: 2rem;
        text-align: center;
    }

    .hero div[style*="display: flex"] {
        justify-content: center;
    }
}

/* Slider */
.main-slider {
    position: relative;
    height: 600px;
    width: 100%;
    overflow: hidden;
    background-color: var(--navy-900);
    margin-top: 80px;
    /* Navbar height */
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.5s ease-in-out, visibility 1.5s;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center 30%;
}

.slide-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.5));
    z-index: 1;
}

.slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 0 20px;
}

.slide-title {
    color: var(--gold-500);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.5s;
}

.slide-text {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.8s;
}

.slide-item.active .slide-title,
.slide-item.active .slide-text {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .main-slider {
        height: 400px;
    }

    .slide-title {
        font-size: 2rem;
    }

    .slide-text {
        font-size: 1rem;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--slate-200);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
    border-color: var(--gold-500);
}

.card-img {
    height: 240px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-bottom: 2px solid var(--gold-500);
}

/* ================================
   WhatsApp Floating Button
================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    text-decoration: none;
    z-index: 1000;
    animation: whatsappPulse 2s ease-in-out infinite;
    transition: transform 0.3s ease, background 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    background: #128C7E;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    }

    50% {
        box-shadow: 0 4px 40px rgba(37, 211, 102, 0.9);
    }
}

/* ================================
   Chatbot Toggle Button
================================ */
.chatbot-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--navy-900);
    color: var(--gold-500);
    border: 2px solid var(--gold-600);
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    background: var(--gold-600);
    color: var(--white);
}

/* ================================
   Chatbot Window
================================ */
.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 340px;
    height: 480px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
    display: none;
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    border: 1px solid var(--slate-200);
}

.chatbot-container.active {
    display: flex;
}

.chatbot-header {
    background: var(--navy-900);
    color: var(--white);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gold-600);
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gold-500);
}

.chatbot-close {
    background: transparent;
    border: none;
    color: var(--slate-300);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s, transform 0.3s;
    line-height: 1;
    padding: 2px;
}

.chatbot-close:hover {
    color: var(--white);
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: var(--slate-50);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bot-message,
.user-message {
    padding: 10px 14px;
    border-radius: 12px;
    max-width: 82%;
    font-size: 0.875rem;
    line-height: 1.6;
    animation: chatFadeIn 0.3s ease;
}

.bot-message {
    background: var(--white);
    color: var(--slate-800);
    align-self: flex-start;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--slate-200);
}

.user-message {
    background: var(--navy-900);
    color: var(--white);
    align-self: flex-end;
}

@keyframes chatFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chatbot-input {
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    background: var(--white);
    border-top: 1px solid var(--slate-200);
}

.chatbot-input input {
    flex: 1;
    padding: 9px 14px;
    border: 1.5px solid var(--slate-200);
    border-radius: 24px;
    font-family: inherit;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.2s;
    color: var(--slate-800);
}

.chatbot-input input:focus {
    border-color: var(--gold-500);
}

.chatbot-input button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gold-600);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
}

/* Footer Global Styles */
footer {
    background: var(--navy-900);
    color: var(--white);
    padding: 4rem 0 2rem;
    border-top: 4px solid var(--gold-600);
}

footer .logo {
    display: block;
    margin-bottom: 1rem;
}

footer h4 {
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white);
}

footer ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

footer a {
    color: var(--slate-300);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--gold-500);
}

/* Service Detail Styles */
.service-detail-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--navy-900);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.service-detail-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold-600);
    border-radius: 2px;
}

[dir="rtl"] .service-title::after {
    right: 0;
    left: auto;
    transform: none;
}

[dir="ltr"] .service-title::after {
    left: 0;
    right: auto;
    transform: none;
    background-color: var(--navy-900);
}

.chatbot-input button:hover {
    background: var(--gold-700);
    transform: scale(1.08);
}

/* Responsive */
@media (max-width: 480px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
        bottom: 20px;
        left: 16px;
    }

    .chatbot-toggle {
        width: 52px;
        height: 52px;
        font-size: 20px;
        bottom: 20px;
        right: 16px;
    }

    .chatbot-container {
        width: 92%;
        right: 4%;
        bottom: 84px;
        height: 440px;
    }
}