/* styles.css - نظام تصميم موقع أمواج للسفريات والسياحة */

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

:root {
    /* لوحة الألوان المحيطية */
    --primary-dark: #0B192C;     /* أزرق محيطي عميق */
    --primary-blue: #1E3A8A;     /* أزرق ملكي */
    --wave-cyan: #00D8D6;        /* فيروزي ويدل على أمواج البحر */
    --wave-teal: #0D9488;        /* فيروزي داكن */
    --sand-gold: #F59E0B;        /* ذهبي رملي للعروض والأسعار */
    --sea-foam: #F0FDFA;         /* أبيض رغوي ناعم */
    --sky-blue: #E0F2FE;         /* أزرق سماوي خفيف */
    --text-dark: #1E293B;        /* رمادي داكن للنصوص */
    --text-light: #F8FAFC;       /* نص فاتح */
    --card-bg: rgba(255, 255, 255, 0.85);
    
    /* خطوط وظلال */
    --font-cairo: 'Cairo', sans-serif;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 20px rgba(0, 216, 214, 0.4);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-cairo);
    background-color: #f7fafc;
    color: var(--text-dark);
    direction: rtl;
    text-align: right;
    line-height: 1.8;
    overflow-x: hidden;
}

/* تنسيق شريط التمرير */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--primary-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--wave-cyan);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--wave-teal);
}

/* المكونات العامة */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    display: inline-block;
}

.section-title h2 span {
    color: var(--wave-teal);
    background: linear-gradient(120deg, var(--primary-blue), var(--wave-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--wave-cyan), var(--primary-blue));
    border-radius: 2px;
}

.section-title::before {
    content: '≈';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--wave-cyan);
    font-size: 1.5rem;
    font-weight: bold;
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: var(--sky-blue);
    color: var(--primary-blue);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), #2563eb);
    color: white;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.6);
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.btn-cyan {
    background: linear-gradient(135deg, #06b6d4, var(--wave-cyan));
    color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.3);
}

.btn-cyan:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--wave-cyan);
    color: var(--wave-cyan);
}

.btn-outline:hover {
    background-color: var(--wave-cyan);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* شريط التنقل (Header / Navbar) */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
}

header.scrolled {
    background: rgba(11, 25, 44, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.assistant-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary-color, #00d8d6);
    color: #fff;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: background 0.3s;
}
.assistant-btn:hover { background: var(--primary-color-dark, #009a9a); }
.assistant-chat {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 320px;
    max-height: 400px;
    background: var(--bg-dark, #1a1a2e);
    color: #f0f0f0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
}
.assistant-chat.hidden { display: none; }
.assistant-header {
    background: var(--primary-color, #00d8d6);
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: #fff;
}
.assistant-close { background: transparent; border: none; color: #fff; font-size: 18px; cursor: pointer; }
.assistant-messages { flex: 1; padding: 10px; overflow-y: auto; font-size: 14px; }
.assistant-input-wrapper { display: flex; border-top: 1px solid rgba(255,255,255,0.1); }
.assistant-input-wrapper input { flex: 1; border: none; padding: 8px; background: var(--bg-dark, #1a1a2e); color: #fff; }
.assistant-input-wrapper button { background: var(--primary-color, #00d8d6); border: none; color: #fff; padding: 0 12px; cursor: pointer; }

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.logo-text span {
    color: var(--wave-cyan);
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--wave-cyan), var(--primary-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.3rem;
    box-shadow: var(--shadow-glow);
    animation: pulse-wave 3s infinite ease-in-out;
}

@keyframes pulse-wave {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: rgba(248, 250, 252, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--wave-cyan);
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--wave-cyan);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* القسم الرئيسي (Hero Section) */
.hero {
    position: relative;
    min-height: 95vh;
    padding-top: 150px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(11, 25, 44, 0.82), rgba(11, 25, 44, 0.95)), url('assets/hero_bg.png') no-repeat center center/cover;
    color: white;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-tagline {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--wave-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    display: inline-block;
    padding: 5px 15px;
    background: rgba(0, 216, 214, 0.1);
    border-radius: 30px;
    border: 1px solid rgba(0, 216, 214, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 25px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-title span {
    color: var(--wave-cyan);
    position: relative;
}

.hero-desc {
    font-size: 1.25rem;
    color: rgba(248, 250, 252, 0.9);
    margin-bottom: 45px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* شريط البحث التفاعلي (Search Wave Bar) */
.search-bar-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 850px;
    margin: 0 auto;
}

.search-bar {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr;
    gap: 15px;
    align-items: center;
}

.search-input-group {
    position: relative;
    text-align: right;
}

.search-input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--wave-cyan);
    margin-bottom: 5px;
    font-weight: 600;
}

.search-input-group select,
.search-input-group input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(11, 25, 44, 0.7);
    color: white;
    font-family: var(--font-cairo);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.search-input-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    background-size: 15px;
}

.search-input-group select:focus,
.search-input-group input:focus {
    border-color: var(--wave-cyan);
    box-shadow: 0 0 10px rgba(0, 216, 214, 0.3);
}

.search-input-group i {
    position: absolute;
    bottom: 16px;
    right: 15px;
    color: var(--wave-cyan);
    font-size: 1.1rem;
}

.search-btn {
    height: 50px;
    margin-top: 20px;
    font-size: 1.05rem;
}

/* أمواج هيرو المنحنية (Hero bottom wave divider) */
.hero-wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    transform: rotate(180deg);
}

.hero-wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

.hero-wave-divider .shape-fill {
    fill: #f7fafc; /* تطابق خلفية السكشن التالي */
}

/* قسم العروض والرحلات */
.offers-section {
    padding: 100px 0;
    position: relative;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 35px;
    margin-top: 30px;
}

/* كارت العرض السياحي */
.tour-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    position: relative;
}

.tour-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: rgba(13, 148, 136, 0.2);
}

.card-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.tour-card:hover .card-img {
    transform: scale(1.15);
}

.card-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(11, 25, 44, 0.85);
    backdrop-filter: blur(5px);
    color: var(--wave-cyan);
    padding: 4px 15px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 216, 214, 0.3);
}

.card-price-badge {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--sand-gold), #d97706);
    color: white;
    padding: 8px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-price-badge span {
    font-size: 0.8rem;
    font-weight: 400;
}

.card-body {
    padding: 22px 25px 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 12px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-meta i {
    color: var(--wave-teal);
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 12px;
    transition: var(--transition);
}

.tour-card:hover .card-title {
    color: var(--wave-teal);
}

.card-desc {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.card-features {
    list-style: none;
    margin-bottom: 25px;
    border-top: 1px dashed #e2e8f0;
    padding-top: 15px;
}

.card-features li {
    font-size: 0.88rem;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-features i {
    color: #10b981;
    font-size: 0.95rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
    margin-top: auto;
}

.card-btn {
    width: 100%;
}

/* قسم متطلبات السفر وتأشيرات السفر */
.req-section {
    padding: 100px 0;
    background-color: var(--sea-foam);
    position: relative;
    border-top: 1px solid #e2f8f5;
    border-bottom: 1px solid #e2f8f5;
}

.req-container {
    max-width: 900px;
    margin: 0 auto;
}

/* أزرار التبويب Tabs */
.tabs-header {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    border-radius: 30px;
    background: white;
    border: 1px solid #cbd5e1;
    color: var(--text-dark);
    font-family: var(--font-cairo);
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-sm);
}

.tab-btn i {
    font-size: 1.1rem;
    color: #64748b;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--wave-teal);
    color: var(--wave-teal);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--wave-teal));
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.3);
}

.tab-btn.active i {
    color: var(--wave-cyan);
}

/* محتوى التبويب Tabs Content */
.tab-content {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid #f1f5f9;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

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

.tab-pane h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tab-pane h3 i {
    color: var(--wave-teal);
}

.req-alert {
    background-color: #fffbeb;
    border-right: 4px solid var(--sand-gold);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    color: #b45309;
    font-weight: 600;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.req-alert i {
    margin-top: 4px;
    font-size: 1.2rem;
}

.req-list {
    list-style: none;
}

.req-list li {
    padding: 12px 15px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    color: #334155;
}

.req-list li:last-child {
    border-bottom: none;
}

.req-list li::before {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--wave-teal);
    font-size: 1.1rem;
}

/* قسم المميزات / لماذا نحن */
.features-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-box {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 216, 214, 0.2);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--sea-foam);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.8rem;
    color: var(--wave-teal);
    transition: var(--transition);
}

.feature-box:hover .feature-icon {
    background: linear-gradient(135deg, var(--wave-cyan), var(--primary-blue));
    color: white;
    box-shadow: var(--shadow-glow);
}

.feature-box h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.feature-box p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* نافذة الحجز المنبثقة (Booking Modal) */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 25, 44, 0.8);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    background: white;
    border-radius: 24px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-blue));
    color: white;
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.modal-title span {
    color: var(--wave-cyan);
}

.modal-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--wave-cyan);
    color: var(--primary-dark);
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 10px;
    border: 1.5px solid #cbd5e1;
    font-family: var(--font-cairo);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--wave-teal);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* حاسبة السعر التفاعلية */
.pricing-calculator {
    background: var(--sea-foam);
    border: 1px solid #ccfbf1;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.calc-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wave-teal);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #475569;
}

.calc-total {
    display: flex;
    justify-content: space-between;
    border-top: 1.5px dashed #99f6e4;
    padding-top: 10px;
    margin-top: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.calc-total .price-val {
    color: #d97706;
}

.price-note {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 5px;
    text-align: left;
}

/* الفوتر والأمواج المتحركة (Footer & Wave Animation) */
footer {
    background-color: var(--primary-dark);
    color: white;
    position: relative;
    padding-top: 100px; /* تعويض لمساحة الأمواج */
    margin-top: 100px;
}

/* أمواج SVG المتحركة */
.waves-container {
    position: absolute;
    top: -95px; /* رفع الأمواج فوق الفوتر */
    left: 0;
    width: 100%;
    height: 100px;
    min-height: 80px;
    max-height: 120px;
    overflow: hidden;
    pointer-events: none;
}

.waves {
    position: relative;
    width: 100%;
    height: 100%;
    margin-bottom: -7px; /* سد الفراغ البسيط */
}

/* حركة الأمواج */
.parallax > use {
    animation: move-forever 25s cubic-bezier(.55,.5,.45,.5) infinite;
}

.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.parallax > use:nth-child(2) {
    animation-delay: -4s;
    animation-duration: 12s;
}

.parallax > use:nth-child(3) {
    animation-delay: -6s;
    animation-duration: 16s;
}

.parallax > use:nth-child(4) {
    animation-delay: -8s;
    animation-duration: 22s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-about .footer-logo {
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.95rem;
    margin-bottom: 25px;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background: var(--wave-cyan);
    color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.footer-links h5,
.footer-contact h5 {
    font-size: 1.15rem;
    font-weight: 800;
    margin-bottom: 25px;
    color: var(--wave-cyan);
    position: relative;
    padding-bottom: 10px;
}

.footer-links h5::after,
.footer-contact h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 30px;
    height: 3px;
    background-color: var(--wave-cyan);
    border-radius: 2px;
}

.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 12px;
}

.footer-links-list a {
    color: rgba(248, 250, 252, 0.7);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--wave-cyan);
    transform: translateX(-5px);
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 18px;
    color: rgba(248, 250, 252, 0.7);
    font-size: 0.95rem;
}

.contact-list i {
    color: var(--wave-cyan);
    font-size: 1.1rem;
    margin-top: 5px;
}

.footer-bottom {
    padding: 25px 0;
    text-align: center;
    color: rgba(248, 250, 252, 0.5);
    font-size: 0.88rem;
}

/* متجاوب مع الهواتف والأجهزة اللوحية (Responsive Utilities) */
@media (max-width: 991px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--primary-dark);
        flex-direction: column;
        padding: 50px 0;
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 15px 0;
    }
    
    .search-bar {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .search-btn {
        margin-top: 10px;
    }
    
    .hero {
        padding-top: 120px;
        min-height: auto;
        padding-bottom: 80px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .tab-content {
        padding: 25px 15px;
    }
}

/* ============================================================
   Floating AI Assistant Chat Widget
   ============================================================ */

/* --- Floating Button --- */
.assistant-btn {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wave-cyan) 0%, var(--wave-teal) 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    box-shadow: 0 8px 24px rgba(0, 216, 214, 0.45), 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.assistant-btn:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 216, 214, 0.6), 0 4px 12px rgba(0,0,0,0.25);
}

.assistant-btn:active { transform: scale(0.96); }

/* Pulse ring */
.assistant-btn-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(0, 216, 214, 0.35);
    animation: assistantPulse 2.2s ease-out infinite;
    pointer-events: none;
}

@keyframes assistantPulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* --- Chat Window --- */
.assistant-chat {
    position: fixed;
    bottom: 102px;
    left: 28px;
    width: 370px;
    max-width: calc(100vw - 56px);
    height: 520px;
    max-height: calc(100vh - 130px);
    background: linear-gradient(160deg, #0d1f3c 0%, #0B192C 100%);
    border: 1px solid rgba(0, 216, 214, 0.22);
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(0,216,214,0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 9998;
    transform-origin: bottom left;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
}

.assistant-chat.hidden {
    transform: scale(0.7) translateY(20px);
    opacity: 0;
    pointer-events: none;
}

/* --- Chat Header --- */
.assistant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(0,216,214,0.12) 0%, rgba(13,148,136,0.08) 100%);
    border-bottom: 1px solid rgba(0, 216, 214, 0.15);
    flex-shrink: 0;
}

.assistant-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.assistant-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wave-cyan), var(--wave-teal));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 12px rgba(0, 216, 214, 0.4);
}

.assistant-name {
    color: var(--wave-cyan);
    font-weight: 700;
    font-size: 0.95rem;
    font-family: var(--font-cairo);
}

.assistant-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    font-family: var(--font-cairo);
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    display: inline-block;
    animation: statusBlink 2s ease-in-out infinite;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.4; }
}

.assistant-close {
    background: rgba(255,255,255,0.07);
    border: none;
    color: rgba(255,255,255,0.5);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.assistant-close:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

/* --- Messages Area --- */
.assistant-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scroll-behavior: smooth;
}

.assistant-messages::-webkit-scrollbar { width: 4px; }
.assistant-messages::-webkit-scrollbar-track { background: transparent; }
.assistant-messages::-webkit-scrollbar-thumb { background: rgba(0,216,214,0.25); border-radius: 4px; }

/* --- Welcome Screen --- */
.assistant-welcome {
    text-align: center;
    padding: 12px 8px;
    color: rgba(255,255,255,0.75);
    font-family: var(--font-cairo);
    font-size: 0.88rem;
    line-height: 1.7;
}

.welcome-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 8px rgba(0,216,214,0.5));
}

.assistant-welcome p { margin-bottom: 14px; }

.welcome-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    justify-content: center;
}

.suggestion-chip {
    background: rgba(0, 216, 214, 0.1);
    border: 1px solid rgba(0, 216, 214, 0.25);
    color: var(--wave-cyan);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.76rem;
    cursor: pointer;
    font-family: var(--font-cairo);
    transition: background 0.2s, transform 0.2s;
    white-space: nowrap;
}

.suggestion-chip:hover {
    background: rgba(0, 216, 214, 0.22);
    transform: translateY(-1px);
}

/* --- Message Bubbles --- */
.chat-message {
    display: flex;
    flex-direction: column;
    max-width: 88%;
    animation: msgFadeIn 0.3s ease forwards;
}

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

.chat-message.user {
    align-self: flex-end;
    align-items: flex-end;
}

.chat-message.assistant {
    align-self: flex-start;
    align-items: flex-start;
}

.chat-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.65;
    font-family: var(--font-cairo);
    word-break: break-word;
}

.chat-message.user .chat-bubble {
    background: linear-gradient(135deg, var(--wave-cyan) 0%, var(--wave-teal) 100%);
    color: #fff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,216,214,0.3);
}

.chat-message.assistant .chat-bubble {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(0, 216, 214, 0.12);
    border-bottom-left-radius: 4px;
}

/* Markdown styling inside chat bubbles */
.chat-bubble h1, .chat-bubble h2, .chat-bubble h3 {
    color: var(--wave-cyan);
    margin: 8px 0 4px;
    font-size: 1em;
}
.chat-bubble p { margin: 4px 0; }
.chat-bubble ul, .chat-bubble ol { padding-right: 18px; margin: 4px 0; }
.chat-bubble li { margin: 3px 0; }
.chat-bubble strong { color: var(--wave-cyan); }
.chat-bubble em { opacity: 0.85; }
.chat-bubble code {
    background: rgba(0,216,214,0.12);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 0.82em;
}
.chat-bubble pre {
    background: rgba(0,0,0,0.3);
    padding: 8px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 6px 0;
}
.chat-bubble a { color: var(--wave-cyan); text-decoration: underline; }
.chat-bubble blockquote {
    border-right: 3px solid var(--wave-cyan);
    margin: 4px 0;
    padding-right: 10px;
    color: rgba(255,255,255,0.6);
}
.chat-bubble hr { border-color: rgba(0,216,214,0.2); margin: 8px 0; }

/* --- Typing Indicator --- */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(0,216,214,0.12);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--wave-cyan);
    animation: typingBounce 1.2s ease-in-out infinite;
    opacity: 0.6;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: translateY(0); opacity: 0.6; }
    40%           { transform: translateY(-6px); opacity: 1; }
}

/* --- Timestamp --- */
.msg-time {
    font-size: 0.67rem;
    color: rgba(255,255,255,0.28);
    margin-top: 3px;
    padding: 0 4px;
    font-family: var(--font-cairo);
}

/* --- Input Area --- */
.assistant-input-wrapper {
    display: flex;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid rgba(0, 216, 214, 0.12);
    background: rgba(0,0,0,0.2);
    flex-shrink: 0;
    align-items: center;
}

#assistant-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(0, 216, 214, 0.2);
    border-radius: 22px;
    padding: 10px 16px;
    color: rgba(255,255,255,0.9);
    font-size: 0.875rem;
    font-family: var(--font-cairo);
    outline: none;
    transition: border-color 0.25s, box-shadow 0.25s;
}

#assistant-input::placeholder { color: rgba(255,255,255,0.3); }

#assistant-input:focus {
    border-color: rgba(0, 216, 214, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 216, 214, 0.1);
}

.assistant-send {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--wave-cyan), var(--wave-teal));
    border: none;
    color: #fff;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
    box-shadow: 0 4px 12px rgba(0,216,214,0.3);
}

.assistant-send:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0,216,214,0.45);
}

.assistant-send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

/* --- Language Selector --- */
.lang-selector {
    position: relative;
    display: inline-block;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary-dark);
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-cairo);
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition);
}

.scrolled .lang-btn {
    background: rgba(11, 25, 44, 0.05);
    border-color: rgba(11, 25, 44, 0.1);
}

.lang-btn:hover, .lang-selector.active .lang-btn {
    background: rgba(255, 255, 255, 0.25);
}

.lang-btn .fi {
    border-radius: 2px;
    font-size: 1.2rem;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 50%;
    transform: translateX(50%) translateY(10px);
    background: #fff;
    min-width: 150px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1000;
    padding: 8px 0;
    list-style: none;
}

.lang-selector.active .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

.lang-dropdown li {
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.lang-dropdown li:hover {
    background: var(--sky-blue);
    color: var(--primary-blue);
}

.lang-dropdown li.active {
    background: rgba(0, 216, 214, 0.1);
    color: var(--wave-teal);
    font-weight: 700;
}

.lang-dropdown li .fi {
    border-radius: 2px;
    font-size: 1.1rem;
}

/* Hide Google Translate UI Elements */
body {
    top: 0 !important;
}
.skiptranslate iframe,
.goog-te-banner-frame {
    display: none !important;
}
.goog-text-highlight {
    background-color: transparent !important;
    box-shadow: none !important;
}

/* --- Responsive --- */
@media (max-width: 480px) {
    .assistant-chat {
        bottom: 90px;
        left: 12px;
        right: 12px;
        width: auto;
        max-width: 100%;
        height: 460px;
    }

    .assistant-btn {
        bottom: 18px;
        left: 18px;
        width: 56px;
        height: 56px;
    }
}

/* --- Keyframe Animations & Wave Effects --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.waves-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.waves {
    position: relative;
    width: 100%;
    height: 12vh;
    margin-bottom: -7px;
    min-height: 80px;
    max-height: 140px;
}

.parallax > use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}
.parallax > use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}
.parallax > use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}
.parallax > use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}
.parallax > use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

.assistant-btn-pulse {
    position: absolute;
    top: -4px;
    right: -4px;
    bottom: -4px;
    left: -4px;
    border-radius: 50%;
    border: 2px solid var(--wave-cyan);
    animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
    pointer-events: none;
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.18);
        opacity: 0;
    }
    100% {
        transform: scale(0.95);
        opacity: 0;
    }
}


/* =========================================================
   أنماط الأمان - Security Validation Styles
   ========================================================= */

/* حقل الإدخال عند وجود خطأ */
.input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
    animation: shake 0.4s ease;
}

/* رسالة الخطأ المعروضة تحت الحقل */
.field-error {
    display: block;
    color: #ef4444;
    font-size: 0.78rem;
    margin-top: 4px;
    font-weight: 500;
    padding-right: 4px;
}

/* حركة الاهتزاز عند خطأ التحقق */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-6px); }
    40%       { transform: translateX(6px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/* إزالة خطأ عند التركيز على الحقل */
.input-error:focus {
    border-color: var(--wave-cyan) !important;
    box-shadow: 0 0 0 3px rgba(0, 216, 214, 0.2) !important;
}
